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 /railties/lib/rails | |
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 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/console_app.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/lib/rails/console_app.rb b/railties/lib/rails/console_app.rb index 5ce3d0d13b..fc84a50e91 100644 --- a/railties/lib/rails/console_app.rb +++ b/railties/lib/rails/console_app.rb @@ -17,7 +17,8 @@ end # create a new session. If a block is given, the new session will be yielded # to the block before being returned. def new_session - session = ActionController::Integration::Session.new + app = ActionController::Dispatcher.new + session = ActionController::Integration::Session.new(app) yield session if block_given? session end |