aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/webservice_test.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-09-26 20:51:05 -0500
committerJoshua Peek <josh@joshpeek.com>2009-09-26 20:51:05 -0500
commitacfeec515111d427b3a27aef3af034922e0d9248 (patch)
tree33e1ea90436ab5dc58fe8c2da4e3735696911e72 /actionpack/test/controller/webservice_test.rb
parent02413baabbc2d7458377822974ee3405a91fe627 (diff)
downloadrails-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/controller/webservice_test.rb')
-rw-r--r--actionpack/test/controller/webservice_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/controller/webservice_test.rb b/actionpack/test/controller/webservice_test.rb
index 916124e221..c04d20fbad 100644
--- a/actionpack/test/controller/webservice_test.rb
+++ b/actionpack/test/controller/webservice_test.rb
@@ -245,8 +245,8 @@ class WebServiceTest < ActionController::IntegrationTest
private
def with_params_parsers(parsers = {})
old_session = @integration_session
- app = ActionDispatch::ParamsParser.new(ActionController::Routing::Routes, parsers)
- @integration_session = open_session(app)
+ @app = ActionDispatch::ParamsParser.new(ActionController::Routing::Routes, parsers)
+ reset!
yield
ensure
@integration_session = old_session