Revert orphaned SharedTestRoutes

This commit is contained in:
Jeremy Kemper
2010-03-01 23:22:11 -08:00
parent f221a6f19f
commit ea4fd64133

View File

@@ -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