diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-04-26 17:27:17 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-04-26 17:27:17 -0300 |
commit | 505fa60be207c60ecd856a00a08b48e4159c18d4 (patch) | |
tree | 6ecf6a4a3d6e4382e25efe939c831518e0179dfb /actionpack/test | |
parent | 64114b66d2b363187f023e2108b559436883bdf1 (diff) | |
parent | fc0460a32c0b2fd583a64eb42df40a8865090190 (diff) | |
download | rails-505fa60be207c60ecd856a00a08b48e4159c18d4.tar.gz rails-505fa60be207c60ecd856a00a08b48e4159c18d4.tar.bz2 rails-505fa60be207c60ecd856a00a08b48e4159c18d4.zip |
Merge pull request #19904 from zzak/rm_route_wrapper_internal_hacks
Rm route wrapper internal hacks
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/dispatch/routing/inspector_test.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/actionpack/test/dispatch/routing/inspector_test.rb b/actionpack/test/dispatch/routing/inspector_test.rb index 3df022c64b..4047214843 100644 --- a/actionpack/test/dispatch/routing/inspector_test.rb +++ b/actionpack/test/dispatch/routing/inspector_test.rb @@ -313,6 +313,22 @@ module ActionDispatch assert_equal ["Prefix Verb URI Pattern Controller#Action", " GET /:controller(/:action) (?-mix:api\\/[^\\/]+)#:action"], output end + + def test_inspect_routes_shows_resources_route_when_assets_disabled + @set = ActionDispatch::Routing::RouteSet.new + app = ActiveSupport::OrderedOptions.new + + Rails.stubs(:application).returns(app) + + output = draw do + get '/cart', to: 'cart#show' + end + + assert_equal [ + "Prefix Verb URI Pattern Controller#Action", + " cart GET /cart(.:format) cart#show" + ], output + end end end end |