aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorRyunosuke SATO <tricknotes.rs@gmail.com>2013-12-07 01:32:25 +0900
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-12-19 09:51:17 -0200
commitd54bc032c90517fc1e57db9fca75e3297acc86fb (patch)
treec1d1a39231ba43cce2ee133b2d81ecc4e8714916 /actionpack/test
parentc5b76b5362e4ba28ff3a5649156c50dff9a86de7 (diff)
downloadrails-d54bc032c90517fc1e57db9fca75e3297acc86fb.tar.gz
rails-d54bc032c90517fc1e57db9fca75e3297acc86fb.tar.bz2
rails-d54bc032c90517fc1e57db9fca75e3297acc86fb.zip
Show routes defined under assets prefix
Closes #9625
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/dispatch/routing/inspector_test.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/actionpack/test/dispatch/routing/inspector_test.rb b/actionpack/test/dispatch/routing/inspector_test.rb
index c8038bbd7c..18a52f13a7 100644
--- a/actionpack/test/dispatch/routing/inspector_test.rb
+++ b/actionpack/test/dispatch/routing/inspector_test.rb
@@ -203,6 +203,18 @@ module ActionDispatch
assert_no_match(/\/sprockets/, output.first)
end
+ def test_rake_routes_shows_route_defined_in_under_assets_prefix
+ output = draw do
+ scope '/sprockets' do
+ get '/foo' => 'foo#bar'
+ end
+ end
+ assert_equal [
+ "Prefix Verb URI Pattern Controller#Action",
+ " foo GET /sprockets/foo(.:format) foo#bar"
+ ], output
+ end
+
def test_redirect
output = draw do
get "/foo" => redirect("/foo/bar"), :constraints => { :subdomain => "admin" }