diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-07-07 10:21:57 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-07-07 10:22:13 -0700 |
commit | 09eeb3fc04aefaab8beee28f2be8d09b01f9541c (patch) | |
tree | 3bc99664bc2d5537411bbbeee0514896e1de237f /actionpack/lib/action_dispatch | |
parent | bfcdc401d1300536bf61ae10670ddfb9ee14f295 (diff) | |
download | rails-09eeb3fc04aefaab8beee28f2be8d09b01f9541c.tar.gz rails-09eeb3fc04aefaab8beee28f2be8d09b01f9541c.tar.bz2 rails-09eeb3fc04aefaab8beee28f2be8d09b01f9541c.zip |
always test against a routed rack app so there are always url_helpers
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/testing/integration.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |