aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorgbuesing <gbuesing@gmail.com>2008-04-20 21:57:56 -0500
committergbuesing <gbuesing@gmail.com>2008-04-20 21:57:56 -0500
commit6ef4239f8bd4d4ea7a5bc7f2cdaf14f87e6eb9a1 (patch)
tree54a76b1698a9012d5b37c3ee13d258c9a03beaa6 /actionpack/test
parent32b82e4c6f5523cdf5ee78c3022c50b46e018351 (diff)
parent1d18651ea36e2ba274b6c2e0fd4edd425e028589 (diff)
downloadrails-6ef4239f8bd4d4ea7a5bc7f2cdaf14f87e6eb9a1.tar.gz
rails-6ef4239f8bd4d4ea7a5bc7f2cdaf14f87e6eb9a1.tar.bz2
rails-6ef4239f8bd4d4ea7a5bc7f2cdaf14f87e6eb9a1.zip
Merge branch 'master' of git@github.com:rails/rails
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/controller/new_render_test.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/actionpack/test/controller/new_render_test.rb b/actionpack/test/controller/new_render_test.rb
index 80cf09e5f3..9f9d861d32 100644
--- a/actionpack/test/controller/new_render_test.rb
+++ b/actionpack/test/controller/new_render_test.rb
@@ -529,26 +529,10 @@ class NewRenderTest < Test::Unit::TestCase
end
def test_access_to_request_in_view
- view_internals_old_value = ActionController::Base.view_controller_internals
-
- ActionController::Base.view_controller_internals = false
- ActionController::Base.protected_variables_cache = nil
-
- get :hello_world
- assert !assigns.include?('_request'), '_request should not be in assigns'
- assert !assigns.include?('request'), 'request should not be in assigns'
-
- ActionController::Base.view_controller_internals = true
- ActionController::Base.protected_variables_cache = nil
-
get :hello_world
assert !assigns.include?('request'), 'request should not be in assigns'
assert_kind_of ActionController::AbstractRequest, assigns['_request']
assert_kind_of ActionController::AbstractRequest, @response.template.request
-
- ensure
- ActionController::Base.view_controller_internals = view_internals_old_value
- ActionController::Base.protected_variables_cache = nil
end
def test_render_xml