aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/render_test.rb
diff options
context:
space:
mode:
authorEmilio Tagua <miloops@gmail.com>2009-08-17 19:46:32 -0300
committerEmilio Tagua <miloops@gmail.com>2009-08-17 19:46:32 -0300
commit4b339f44bdaa307004db2345ac9c950d9f508814 (patch)
tree855748bc8f1df1a8b1d327810be229af05ee522e /actionpack/test/controller/render_test.rb
parentc01c8967a02537f132d437d5ae15332982119651 (diff)
parent25e5b0c4a8d0045715a6ad11e2898585826e4e9b (diff)
downloadrails-4b339f44bdaa307004db2345ac9c950d9f508814.tar.gz
rails-4b339f44bdaa307004db2345ac9c950d9f508814.tar.bz2
rails-4b339f44bdaa307004db2345ac9c950d9f508814.zip
Merge commit 'rails/master'
Diffstat (limited to 'actionpack/test/controller/render_test.rb')
-rw-r--r--actionpack/test/controller/render_test.rb18
1 files changed, 10 insertions, 8 deletions
diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb
index 9c5b560c2c..abcc8bf384 100644
--- a/actionpack/test/controller/render_test.rb
+++ b/actionpack/test/controller/render_test.rb
@@ -1086,15 +1086,17 @@ class RenderTest < ActionController::TestCase
end
def test_head_with_location_object
- ActionController::Routing::Routes.draw do |map|
- map.resources :customers
- map.connect ':controller/:action/:id'
- end
+ with_routing do |set|
+ set.draw do |map|
+ map.resources :customers
+ map.connect ':controller/:action/:id'
+ end
- get :head_with_location_object
- assert @response.body.blank?
- assert_equal "http://www.nextangle.com/customers/1", @response.headers["Location"]
- assert_response :ok
+ get :head_with_location_object
+ assert @response.body.blank?
+ assert_equal "http://www.nextangle.com/customers/1", @response.headers["Location"]
+ assert_response :ok
+ end
end
def test_head_with_custom_header