aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
diff options
context:
space:
mode:
authorMartin Schürrer <martin@schuerrer.org>2010-02-21 17:21:25 +0100
committerYehuda Katz <yehudakatz@YK.local>2010-02-21 13:43:51 -0800
commit6bc24d40d56332593bc22612d4618a2f80b1d91b (patch)
treee49938db28fe51f5c45efde3dec5793e65694da0 /actionpack/test/controller
parent4cdfe98d925397a613c9220bca65be5081c92f56 (diff)
downloadrails-6bc24d40d56332593bc22612d4618a2f80b1d91b.tar.gz
rails-6bc24d40d56332593bc22612d4618a2f80b1d91b.tar.bz2
rails-6bc24d40d56332593bc22612d4618a2f80b1d91b.zip
Use ActionDispatch::Routing everywhere
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r--actionpack/test/controller/rescue_test.rb4
-rw-r--r--actionpack/test/controller/resources_test.rb4
-rw-r--r--actionpack/test/controller/test_test.rb8
-rw-r--r--actionpack/test/controller/webservice_test.rb2
4 files changed, 9 insertions, 9 deletions
diff --git a/actionpack/test/controller/rescue_test.rb b/actionpack/test/controller/rescue_test.rb
index 37367eaafc..118b563a72 100644
--- a/actionpack/test/controller/rescue_test.rb
+++ b/actionpack/test/controller/rescue_test.rb
@@ -326,7 +326,7 @@ class RescueTest < ActionController::IntegrationTest
end
test 'rescue routing exceptions' do
- @app = ActionDispatch::Rescue.new(ActionController::Routing::Routes) do
+ @app = ActionDispatch::Rescue.new(ActionDispatch::Routing::Routes) do
rescue_from ActionController::RoutingError, lambda { |env| [200, {"Content-Type" => "text/html"}, ["Gotcha!"]] }
end
@@ -335,7 +335,7 @@ class RescueTest < ActionController::IntegrationTest
end
test 'unrescued exception' do
- @app = ActionDispatch::Rescue.new(ActionController::Routing::Routes)
+ @app = ActionDispatch::Rescue.new(ActionDispatch::Routing::Routes)
assert_raise(ActionController::RoutingError) { get '/b00m' }
end
diff --git a/actionpack/test/controller/resources_test.rb b/actionpack/test/controller/resources_test.rb
index 01ed491732..9b3f466e44 100644
--- a/actionpack/test/controller/resources_test.rb
+++ b/actionpack/test/controller/resources_test.rb
@@ -394,7 +394,7 @@ class ResourcesTest < ActionController::TestCase
assert_restful_routes_for :messages do |options|
assert_recognizes(options.merge(:action => "new"), :path => "/messages/new", :method => :get)
assert_raise(ActionController::RoutingError) do
- ActionController::Routing::Routes.recognize_path("/messages/new", :method => :post)
+ ActionDispatch::Routing::Routes.recognize_path("/messages/new", :method => :post)
end
end
end
@@ -504,7 +504,7 @@ class ResourcesTest < ActionController::TestCase
def test_restful_routes_dont_generate_duplicates
with_restful_routing :messages do
- routes = ActionController::Routing::Routes.routes
+ routes = ActionDispatch::Routing::Routes.routes
routes.each do |route|
routes.each do |r|
next if route === r # skip the comparison instance
diff --git a/actionpack/test/controller/test_test.rb b/actionpack/test/controller/test_test.rb
index 0f074b32e6..3f5d60540f 100644
--- a/actionpack/test/controller/test_test.rb
+++ b/actionpack/test/controller/test_test.rb
@@ -476,8 +476,8 @@ XML
end
def test_with_routing_places_routes_back
- assert ActionController::Routing::Routes
- routes_id = ActionController::Routing::Routes.object_id
+ assert ActionDispatch::Routing::Routes
+ routes_id = ActionDispatch::Routing::Routes.object_id
begin
with_routing { raise 'fail' }
@@ -485,8 +485,8 @@ XML
rescue RuntimeError
end
- assert ActionController::Routing::Routes
- assert_equal routes_id, ActionController::Routing::Routes.object_id
+ assert ActionDispatch::Routing::Routes
+ assert_equal routes_id, ActionDispatch::Routing::Routes.object_id
end
def test_remote_addr
diff --git a/actionpack/test/controller/webservice_test.rb b/actionpack/test/controller/webservice_test.rb
index 5882a8cfa3..ede48017cf 100644
--- a/actionpack/test/controller/webservice_test.rb
+++ b/actionpack/test/controller/webservice_test.rb
@@ -245,7 +245,7 @@ class WebServiceTest < ActionController::IntegrationTest
private
def with_params_parsers(parsers = {})
old_session = @integration_session
- @app = ActionDispatch::ParamsParser.new(ActionController::Routing::Routes, parsers)
+ @app = ActionDispatch::ParamsParser.new(ActionDispatch::Routing::Routes, parsers)
reset!
yield
ensure