From 09eeb3fc04aefaab8beee28f2be8d09b01f9541c Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 7 Jul 2014 10:21:57 -0700 Subject: always test against a routed rack app so there are always url_helpers --- actionpack/lib/action_dispatch/testing/integration.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_dispatch/testing') diff --git a/actionpack/lib/action_dispatch/testing/integration.rb b/actionpack/lib/action_dispatch/testing/integration.rb index 17765d851b..477ea50b0c 100644 --- a/actionpack/lib/action_dispatch/testing/integration.rb +++ b/actionpack/lib/action_dispatch/testing/integration.rb @@ -188,7 +188,7 @@ module ActionDispatch # This makes app.url_for and app.foo_path available in the console if app.respond_to?(:routes) singleton_class.class_eval do - include app.routes.url_helpers if app.routes.respond_to?(:url_helpers) + include app.routes.url_helpers include app.routes.mounted_helpers if app.routes.respond_to?(:mounted_helpers) end end -- cgit v1.2.3