mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #6481 from schneems/schneems/sextant-routes
Remove Unnecessary Test from route_inspect_test
This commit is contained in:
commit
641ab7cedf
1 changed files with 0 additions and 9 deletions
|
@ -164,14 +164,5 @@ module ApplicationTests
|
|||
assert_equal " bar GET /bar(.:format) redirect(307, path: /foo/bar)", output[1]
|
||||
assert_equal "foobar GET /foobar(.:format) redirect(301)", output[2]
|
||||
end
|
||||
|
||||
def test_presenter
|
||||
output = draw do
|
||||
get "/foo" => redirect("/foo/bar"), :constraints => { :subdomain => "admin" }
|
||||
get "/bar" => redirect(path: "/foo/bar", status: 307)
|
||||
get "/foobar" => redirect{ "/foo/bar" }
|
||||
end
|
||||
assert_equal output.join("\n"), Rails::Application::RoutePresenter.display_routes(@set.routes)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue