diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-07-08 16:23:32 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-07-08 16:23:32 -0700 |
commit | f65fd25f0491919ef9db6e79be43f5d6f518374a (patch) | |
tree | 4b58ed3c87f19b01725b806cc2ea1ab9d86993e7 /actionpack/test | |
parent | b5a9525932a3beb9ccb6040b34cfb75a19e5fb9c (diff) | |
download | rails-f65fd25f0491919ef9db6e79be43f5d6f518374a.tar.gz rails-f65fd25f0491919ef9db6e79be43f5d6f518374a.tar.bz2 rails-f65fd25f0491919ef9db6e79be43f5d6f518374a.zip |
request objects are no longer recycled
Instead of trying to manually clear out a request object, lets just
allocate a new one. The rack ENV is reused and cleaned (still), but the
request object is not.
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/test_case_test.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/actionpack/test/controller/test_case_test.rb b/actionpack/test/controller/test_case_test.rb index ffb505da06..270052ae9f 100644 --- a/actionpack/test/controller/test_case_test.rb +++ b/actionpack/test/controller/test_case_test.rb @@ -718,12 +718,6 @@ XML assert_equal 'it works', session[:symbol], "Test session hash should allow indifferent access" end - def test_header_properly_reset_after_get_request - get :test_params - @request.recycle! - assert_nil @request.instance_variable_get("@request_method") - end - def test_deprecated_params_reset_between_post_requests assert_deprecated { post :no_op, foo: "bar" } assert_equal "bar", @request.params[:foo] |