aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch/routing
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-07-07 10:21:57 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2014-07-07 10:22:13 -0700
commit09eeb3fc04aefaab8beee28f2be8d09b01f9541c (patch)
tree3bc99664bc2d5537411bbbeee0514896e1de237f /actionpack/test/dispatch/routing
parentbfcdc401d1300536bf61ae10670ddfb9ee14f295 (diff)
downloadrails-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/test/dispatch/routing')
-rw-r--r--actionpack/test/dispatch/routing/concerns_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/test/dispatch/routing/concerns_test.rb b/actionpack/test/dispatch/routing/concerns_test.rb
index 9f37701656..7ef513b0c8 100644
--- a/actionpack/test/dispatch/routing/concerns_test.rb
+++ b/actionpack/test/dispatch/routing/concerns_test.rb
@@ -36,7 +36,8 @@ class RoutingConcernsTest < ActionDispatch::IntegrationTest
end
include Routes.url_helpers
- def app; Routes end
+ APP = RoutedRackApp.new Routes
+ def app; APP end
def test_accessing_concern_from_resources
get "/posts/1/comments"