aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/abstract_unit.rb2
-rw-r--r--actionpack/test/activerecord/polymorphic_routes_test.rb6
-rw-r--r--actionpack/test/controller/caching_test.rb2
-rw-r--r--actionpack/test/controller/integration_test.rb8
-rw-r--r--actionpack/test/controller/resources_test.rb4
-rw-r--r--actionpack/test/controller/routing_test.rb4
-rw-r--r--actionpack/test/dispatch/routing_test.rb2
7 files changed, 14 insertions, 14 deletions
diff --git a/actionpack/test/abstract_unit.rb b/actionpack/test/abstract_unit.rb
index 846ac5f0d7..9960f7af87 100644
--- a/actionpack/test/abstract_unit.rb
+++ b/actionpack/test/abstract_unit.rb
@@ -256,7 +256,7 @@ end
# ROUTES TODO: Cleaner way to do this?
module ActionController
- UrlFor = SharedTestRoutes.named_url_helpers
+ UrlFor = SharedTestRoutes.url_helpers
class Base
include UrlFor
end
diff --git a/actionpack/test/activerecord/polymorphic_routes_test.rb b/actionpack/test/activerecord/polymorphic_routes_test.rb
index a10bb4473e..6e406ecd15 100644
--- a/actionpack/test/activerecord/polymorphic_routes_test.rb
+++ b/actionpack/test/activerecord/polymorphic_routes_test.rb
@@ -400,7 +400,7 @@ class PolymorphicRoutesTest < ActionController::TestCase
map.resources :series
end
- self.class.send(:include, @router.named_url_helpers)
+ self.class.send(:include, @router.url_helpers)
yield
end
end
@@ -422,7 +422,7 @@ class PolymorphicRoutesTest < ActionController::TestCase
end
end
- self.class.send(:include, @router.named_url_helpers)
+ self.class.send(:include, @router.url_helpers)
yield
end
end
@@ -441,7 +441,7 @@ class PolymorphicRoutesTest < ActionController::TestCase
end
end
- self.class.send(:include, @router.named_url_helpers)
+ self.class.send(:include, @router.url_helpers)
yield
end
end
diff --git a/actionpack/test/controller/caching_test.rb b/actionpack/test/controller/caching_test.rb
index 98cea945a7..67b6a1d858 100644
--- a/actionpack/test/controller/caching_test.rb
+++ b/actionpack/test/controller/caching_test.rb
@@ -512,7 +512,7 @@ class ActionCacheTest < ActionController::TestCase
@response = ActionController::TestResponse.new
@controller = ActionCachingTestController.new
# ROUTES TODO: It seems bad to explicitly remix in the class
- @controller.singleton_class.send(:include, @router.named_url_helpers)
+ @controller.singleton_class.send(:include, @router.url_helpers)
@request.host = 'hostname.com'
end
diff --git a/actionpack/test/controller/integration_test.rb b/actionpack/test/controller/integration_test.rb
index 437d26e4ed..5352243734 100644
--- a/actionpack/test/controller/integration_test.rb
+++ b/actionpack/test/controller/integration_test.rb
@@ -221,7 +221,7 @@ class IntegrationTestUsesCorrectClass < ActionController::IntegrationTest
end
class IntegrationProcessTest < ActionController::IntegrationTest
- include SharedTestRoutes.named_url_helpers
+ include SharedTestRoutes.url_helpers
class IntegrationController < ActionController::Base
def get
@@ -388,7 +388,7 @@ class IntegrationProcessTest < ActionController::IntegrationTest
with_routing do |set|
controller = ::IntegrationProcessTest::IntegrationController.clone
controller.class_eval do
- include set.named_url_helpers
+ include set.url_helpers
end
set.draw do |map|
@@ -396,7 +396,7 @@ class IntegrationProcessTest < ActionController::IntegrationTest
get 'get/:action', :to => controller
end
- self.singleton_class.send(:include, set.named_url_helpers)
+ self.singleton_class.send(:include, set.url_helpers)
yield
end
@@ -404,7 +404,7 @@ class IntegrationProcessTest < ActionController::IntegrationTest
end
class MetalIntegrationTest < ActionController::IntegrationTest
- include SharedTestRoutes.named_url_helpers
+ include SharedTestRoutes.url_helpers
class Poller
def self.call(env)
diff --git a/actionpack/test/controller/resources_test.rb b/actionpack/test/controller/resources_test.rb
index b377e5bbbc..cf0cab3690 100644
--- a/actionpack/test/controller/resources_test.rb
+++ b/actionpack/test/controller/resources_test.rb
@@ -1231,7 +1231,7 @@ class ResourcesTest < ActionController::TestCase
@controller = "#{options[:options][:controller].camelize}Controller".constantize.new
# ROUTES TODO: Figure out a way to not extend the routing helpers here
- @controller.singleton_class.send(:include, @router.named_url_helpers)
+ @controller.singleton_class.send(:include, @router.url_helpers)
@request = ActionController::TestRequest.new
@response = ActionController::TestResponse.new
get :index, options[:options]
@@ -1301,7 +1301,7 @@ class ResourcesTest < ActionController::TestCase
def assert_singleton_named_routes_for(singleton_name, options = {})
(options[:options] ||= {})[:controller] ||= singleton_name.to_s.pluralize
@controller = "#{options[:options][:controller].camelize}Controller".constantize.new
- @controller.singleton_class.send(:include, @router.named_url_helpers)
+ @controller.singleton_class.send(:include, @router.url_helpers)
@request = ActionController::TestRequest.new
@response = ActionController::TestResponse.new
get :show, options[:options]
diff --git a/actionpack/test/controller/routing_test.rb b/actionpack/test/controller/routing_test.rb
index f2fccfbcfc..31f86d2dde 100644
--- a/actionpack/test/controller/routing_test.rb
+++ b/actionpack/test/controller/routing_test.rb
@@ -251,7 +251,7 @@ class LegacyRouteSetTests < Test::Unit::TestCase
def setup_for_named_route
inst = MockController.clone.new
- inst.class.send(:include, rs.named_url_helpers)
+ inst.class.send(:include, rs.url_helpers)
inst
end
@@ -741,7 +741,7 @@ class RouteSetTest < ActiveSupport::TestCase
map.users '/admin/users', :controller => 'admin/users', :action => 'index'
end
- MockController.clone.new.tap { |inst| inst.class.send(:include, set.named_url_helpers)}
+ MockController.clone.new.tap { |inst| inst.class.send(:include, set.url_helpers)}
end
def test_named_route_hash_access_method
diff --git a/actionpack/test/dispatch/routing_test.rb b/actionpack/test/dispatch/routing_test.rb
index 7cfc6ef3d7..37c2f1421b 100644
--- a/actionpack/test/dispatch/routing_test.rb
+++ b/actionpack/test/dispatch/routing_test.rb
@@ -164,7 +164,7 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest
Routes
end
- include Routes.named_url_helpers
+ include Routes.url_helpers
def test_logout
with_test_routes do