aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--actionpack/lib/action_view/test_case.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/test_case.rb b/actionpack/lib/action_view/test_case.rb
index f6f4e18a4a..af2ed33f3f 100644
--- a/actionpack/lib/action_view/test_case.rb
+++ b/actionpack/lib/action_view/test_case.rb
@@ -53,7 +53,6 @@ module ActionView
setup :setup_with_controller
def setup_with_controller
@controller = TestController.new
- @router = SharedTestRoutes
@output_buffer = ActiveSupport::SafeBuffer.new
@rendered = ''
@@ -153,7 +152,7 @@ module ActionView
end
def method_missing(selector, *args)
- if @router.named_routes.helpers.include?(selector)
+ if ActionDispatch::Routing::Routes.named_routes.helpers.include?(selector)
@controller.__send__(selector, *args)
else
super