diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-22 17:57:45 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-22 17:57:45 -0700 |
commit | 5fe141638f1243ac6ae187ae14aa398b4c1875a2 (patch) | |
tree | 699f8e31db610dc66ab08e4c5d748076b29dea3a /actionpack/test/dispatch/session | |
parent | 4f244f7cab1945d621f171f01c357d80dee09a7e (diff) | |
download | rails-5fe141638f1243ac6ae187ae14aa398b4c1875a2.tar.gz rails-5fe141638f1243ac6ae187ae14aa398b4c1875a2.tar.bz2 rails-5fe141638f1243ac6ae187ae14aa398b4c1875a2.zip |
use a request object in the session middleware
This commit allows us to use one request object rather than allocating
multiple request objects to deal with the session.
Diffstat (limited to 'actionpack/test/dispatch/session')
-rw-r--r-- | actionpack/test/dispatch/session/abstract_store_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/test/dispatch/session/abstract_store_test.rb b/actionpack/test/dispatch/session/abstract_store_test.rb index fe1a7b4f86..1c35144e6f 100644 --- a/actionpack/test/dispatch/session/abstract_store_test.rb +++ b/actionpack/test/dispatch/session/abstract_store_test.rb @@ -27,7 +27,7 @@ module ActionDispatch as.call(env) assert @env - assert Request::Session.find @env + assert Request::Session.find ActionDispatch::Request.new @env end def test_new_session_object_is_merged_with_old @@ -36,11 +36,11 @@ module ActionDispatch as.call(env) assert @env - session = Request::Session.find @env + session = Request::Session.find ActionDispatch::Request.new @env session['foo'] = 'bar' as.call(@env) - session1 = Request::Session.find @env + session1 = Request::Session.find ActionDispatch::Request.new @env assert_not_equal session, session1 assert_equal session.to_hash, session1.to_hash |