diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-10-03 20:45:49 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-10-03 20:45:49 -0500 |
commit | 84e94551f62d3bcbc71f1c6f3fda738342d984e2 (patch) | |
tree | 910865aabfd681bc4b71f3dc406f858d41ba963b /actionpack/test/controller | |
parent | 89630a7c2c3d0f625742e2b84ec28479ff3ecef9 (diff) | |
download | rails-84e94551f62d3bcbc71f1c6f3fda738342d984e2.tar.gz rails-84e94551f62d3bcbc71f1c6f3fda738342d984e2.tar.bz2 rails-84e94551f62d3bcbc71f1c6f3fda738342d984e2.zip |
Add custom "with_routing" to internal tests to fix reseting session after using
with_routing. This only affects our internal AP tests.
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/integration_test.rb | 5 | ||||
-rw-r--r-- | actionpack/test/controller/rescue_test.rb | 1 | ||||
-rw-r--r-- | actionpack/test/controller/webservice_test.rb | 1 |
3 files changed, 1 insertions, 6 deletions
diff --git a/actionpack/test/controller/integration_test.rb b/actionpack/test/controller/integration_test.rb index 0e4ca21143..508364d0b5 100644 --- a/actionpack/test/controller/integration_test.rb +++ b/actionpack/test/controller/integration_test.rb @@ -372,11 +372,8 @@ class IntegrationProcessTest < ActionController::IntegrationTest def with_test_route_set with_routing do |set| set.draw do |map| - map.with_options :controller => "IntegrationProcessTest::Integration" do |c| - c.connect "/:action" - end + map.connect "/:action", :controller => "integration_process_test/integration" end - reset! yield end end diff --git a/actionpack/test/controller/rescue_test.rb b/actionpack/test/controller/rescue_test.rb index 6ad708bba1..689359166f 100644 --- a/actionpack/test/controller/rescue_test.rb +++ b/actionpack/test/controller/rescue_test.rb @@ -347,7 +347,6 @@ class RescueTest < ActionController::IntegrationTest map.connect 'invalid', :controller => "rescue_test/test", :action => 'invalid' map.connect 'b00m', :controller => "rescue_test/test", :action => 'b00m' end - reset! yield end end diff --git a/actionpack/test/controller/webservice_test.rb b/actionpack/test/controller/webservice_test.rb index c04d20fbad..0514c098bf 100644 --- a/actionpack/test/controller/webservice_test.rb +++ b/actionpack/test/controller/webservice_test.rb @@ -259,7 +259,6 @@ class WebServiceTest < ActionController::IntegrationTest c.connect "/", :action => "assign_parameters" end end - reset! yield end end |