Permalink
Browse files

Revert orphaned SharedTestRoutes

1 parent f221a6f commit ea4fd64133998ce5d6791e0cd98e42f1463ae301 @jeremy jeremy committed Mar 2, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 actionpack/lib/action_view/test_case.rb
View
3 actionpack/lib/action_view/test_case.rb
@@ -53,7 +53,6 @@ def initialize
setup :setup_with_controller
def setup_with_controller
@controller = TestController.new
- @router = SharedTestRoutes
@output_buffer = ActiveSupport::SafeBuffer.new
@rendered = ''
@@ -153,7 +152,7 @@ def _assigns
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

0 comments on commit ea4fd64

Please sign in to comment.