diff options
author | Ryunosuke SATO <tricknotes.rs@gmail.com> | 2013-12-07 01:32:25 +0900 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-12-19 09:51:17 -0200 |
commit | d54bc032c90517fc1e57db9fca75e3297acc86fb (patch) | |
tree | c1d1a39231ba43cce2ee133b2d81ecc4e8714916 /actionpack/test | |
parent | c5b76b5362e4ba28ff3a5649156c50dff9a86de7 (diff) | |
download | rails-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.rb | 12 |
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" } |