diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2010-12-19 17:56:54 +0100 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2010-12-19 17:57:36 +0100 |
commit | 37e643120a5f4ba9fa15b74d6f489f7a0bb66c0d (patch) | |
tree | 87ab482c091ae298244c4211136c8c2277da19b3 /railties | |
parent | 13e5a26dbb3c11b18438d10b752e87fdf4727172 (diff) | |
download | rails-37e643120a5f4ba9fa15b74d6f489f7a0bb66c0d.tar.gz rails-37e643120a5f4ba9fa15b74d6f489f7a0bb66c0d.tar.bz2 rails-37e643120a5f4ba9fa15b74d6f489f7a0bb66c0d.zip |
Temporary fix for railties test for newest rack changes
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/railties/engine_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/railties/test/railties/engine_test.rb b/railties/test/railties/engine_test.rb index 388f940f81..552a846330 100644 --- a/railties/test/railties/engine_test.rb +++ b/railties/test/railties/engine_test.rb @@ -358,14 +358,17 @@ module RailtiesTest env = Rack::MockRequest.env_for("/foo") response = Rails.application.call(env) assert_equal rack_body(["Something... Something... Something..."]), rack_body(response[2]) + response[2].close env = Rack::MockRequest.env_for("/foo/show") response = Rails.application.call(env) assert_equal rack_body(["/foo"]), rack_body(response[2]) + response[2].close env = Rack::MockRequest.env_for("/foo/bar") response = Rails.application.call(env) assert_equal rack_body(["It's a bar."]), rack_body(response[2]) + response[2].close end test "isolated engine should include only its own routes and helpers" do @@ -467,22 +470,27 @@ module RailtiesTest env = Rack::MockRequest.env_for("/bukkits/from_app") response = AppTemplate::Application.call(env) assert_equal rack_body(["false"]), rack_body(response[2]) + response[2].close env = Rack::MockRequest.env_for("/bukkits/foo/show") response = AppTemplate::Application.call(env) assert_equal rack_body(["/bukkits/foo"]), rack_body(response[2]) + response[2].close env = Rack::MockRequest.env_for("/bukkits/foo") response = AppTemplate::Application.call(env) assert_equal rack_body(["Helped."]), rack_body(response[2]) + response[2].close env = Rack::MockRequest.env_for("/bukkits/routes_helpers_in_view") response = AppTemplate::Application.call(env) assert_equal rack_body(["/bukkits/foo, /bar"]), rack_body(response[2]) + response[2].close env = Rack::MockRequest.env_for("/bukkits/polymorphic_path_without_namespace") response = AppTemplate::Application.call(env) assert_equal rack_body(["/bukkits/posts/1"]), rack_body(response[2]) + response[2].close end test "isolated engine should avoid namespace in names if that's possible" do |