diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-09-29 07:34:02 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-09-29 07:34:02 +0000 |
commit | d7674637f9ac7c9764a4fe09dbc15ee239ce5a77 (patch) | |
tree | a1e89ae8634b906244a3a37680c22e7dec38ea61 /actionpack/test/controller/render_test.rb | |
parent | c0eccc9aef21c3eac9d89d3af93b82ce906b04dd (diff) | |
download | rails-d7674637f9ac7c9764a4fe09dbc15ee239ce5a77.tar.gz rails-d7674637f9ac7c9764a4fe09dbc15ee239ce5a77.tar.bz2 rails-d7674637f9ac7c9764a4fe09dbc15ee239ce5a77.zip |
Deprecation: @request will be removed after 1.2. Use the request method instead.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5201 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller/render_test.rb')
-rw-r--r-- | actionpack/test/controller/render_test.rb | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb index 23f90c6243..6e37a7f142 100644 --- a/actionpack/test/controller/render_test.rb +++ b/actionpack/test/controller/render_test.rb @@ -168,25 +168,6 @@ class RenderTest < Test::Unit::TestCase assert_raises(ActionController::UnknownAction, "No action responded to [determine_layout]") { get :determine_layout } 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_nil assigns["request"] - - ActionController::Base.view_controller_internals = true - ActionController::Base.protected_variables_cache = nil - - get :hello_world - assert_kind_of ActionController::AbstractRequest, assigns["request"] - - ActionController::Base.view_controller_internals = view_internals_old_value - ActionController::Base.protected_variables_cache = nil - end - def test_render_xml assert_deprecated_render { get :render_xml_hello } assert_equal "<html>\n <p>Hello David</p>\n<p>This is grand!</p>\n</html>\n", @response.body |