mirror of https://github.com/rails/rails
Merge pull request #19904 from zzak/rm_route_wrapper_internal_hacks
Rm route wrapper internal hacks
This commit is contained in:
commit
505fa60be2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue