Remove redundant test

This test was introduced in #19904.

In #21368 a bunch of test setup was removed, but the assignment
of `@set` was duplicated.

Removing the extraneous test setup means the test is identical to the
`test_cart_inspect` test.

This removes the test entirely.
This commit is contained in:
Connor McQuillan 2023-05-03 22:33:45 +01:00
parent 8049d7983f
commit db8f573ada
No known key found for this signature in database
GPG Key ID: E72E6AFE47A95DC3
1 changed files with 0 additions and 13 deletions

View File

@ -420,19 +420,6 @@ module ActionDispatch
" GET /:controller(/:action) :controller#:action"], output
end
def test_inspect_routes_shows_resources_route_when_assets_disabled
@set = ActionDispatch::Routing::RouteSet.new
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
def test_routes_with_undefined_filter
output = draw(controller: "Rails::MissingController") do
get "photos/:id" => "photos#show", :id => /[A-Z]\d{5}/