diff options
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/application/load_test.rb | 1 | ||||
-rw-r--r-- | railties/test/rack_static_test.rb | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/railties/test/application/load_test.rb b/railties/test/application/load_test.rb index 75dbf56a21..47e425a824 100644 --- a/railties/test/application/load_test.rb +++ b/railties/test/application/load_test.rb @@ -17,7 +17,6 @@ module ApplicationTests test "running Rails::Application.load on the path returns a (vaguely) useful application" do app_file "config.ru", <<-CONFIG require File.dirname(__FILE__) + '/config/environment' - use Rails::Rack::Static run ActionController::Dispatcher.new CONFIG diff --git a/railties/test/rack_static_test.rb b/railties/test/rack_static_test.rb index ad673f6f19..695b011d03 100644 --- a/railties/test/rack_static_test.rb +++ b/railties/test/rack_static_test.rb @@ -15,7 +15,7 @@ class RackStaticTest < ActiveSupport::TestCase DummyApp = lambda { |env| [200, {"Content-Type" => "text/plain"}, ["Hello, World!"]] } - App = Rails::Rack::Static.new(DummyApp) + App = Rails::Rack::Static.new(DummyApp, "#{RAILS_ROOT}/public") test "serves dynamic content" do assert_equal "Hello, World!", get("/nofile") |