diff options
-rwxr-xr-x | bin/unicorn_rails | 4 | ||||
-rwxr-xr-x | t/t0300-rails3-basic.sh | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/bin/unicorn_rails b/bin/unicorn_rails index e9cac00..3614fd4 100755 --- a/bin/unicorn_rails +++ b/bin/unicorn_rails @@ -176,9 +176,7 @@ def rails_builder(ru, opts, daemonize) use Rails::Rack::LogTailer unless daemonize use Rails::Rack::Debugger if $DEBUG map(map_path) do - if defined?(ActionDispatch::Static) - use ActionDispatch::Static, "#{Rails.root}/public" - else + unless defined?(ActionDispatch::Static) use Rails::Rack::Static end run rails_dispatcher diff --git a/t/t0300-rails3-basic.sh b/t/t0300-rails3-basic.sh index 3021276..8bf4066 100755 --- a/t/t0300-rails3-basic.sh +++ b/t/t0300-rails3-basic.sh @@ -18,7 +18,7 @@ t_begin "setup and start" && { # add more tests here t_begin "hit with curl" && { - curl -v http://$listen/ || : + test xHELLO = x"$(curl -sSf http://$listen/x.txt)" } t_begin "killing succeeds" && { |