Merge pull request #19904 from zzak/rm_route_wrapper_internal_hacks

Rm route wrapper internal hacks
This commit is contained in:
Rafael Mendonça França 2015-04-26 17:27:17 -03:00
commit 505fa60be2
1 changed files with 16 additions and 0 deletions

View File

@ -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