diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-09-26 20:51:05 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-09-26 20:51:05 -0500 |
commit | acfeec515111d427b3a27aef3af034922e0d9248 (patch) | |
tree | 33e1ea90436ab5dc58fe8c2da4e3735696911e72 /actionpack/test/dispatch/session/cookie_store_test.rb | |
parent | 02413baabbc2d7458377822974ee3405a91fe627 (diff) | |
download | rails-acfeec515111d427b3a27aef3af034922e0d9248.tar.gz rails-acfeec515111d427b3a27aef3af034922e0d9248.tar.bz2 rails-acfeec515111d427b3a27aef3af034922e0d9248.zip |
Allow integration test rack app to be set with "@app" ivar instead of using open_session
Diffstat (limited to 'actionpack/test/dispatch/session/cookie_store_test.rb')
-rw-r--r-- | actionpack/test/dispatch/session/cookie_store_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/dispatch/session/cookie_store_test.rb b/actionpack/test/dispatch/session/cookie_store_test.rb index bc0b4b22a5..6241c79829 100644 --- a/actionpack/test/dispatch/session/cookie_store_test.rb +++ b/actionpack/test/dispatch/session/cookie_store_test.rb @@ -222,8 +222,8 @@ class CookieStoreTest < ActionController::IntegrationTest map.connect "/:action", :controller => "cookie_store_test/test" end options = {:key => SessionKey, :secret => SessionSecret}.merge(options) - app = ActionDispatch::Session::CookieStore.new(set, options) - @integration_session = open_session(app) + @app = ActionDispatch::Session::CookieStore.new(set, options) + reset! yield end end |