class TestRedirectRouteGeneration

Constants

APP
Routes

Public Instance Methods

app() click to toggle source
# File actionpack/test/dispatch/routing_test.rb, line 4683
def app
  APP
end
test_redirect_doesnt_match_unnamed_route() click to toggle source
# File actionpack/test/dispatch/routing_test.rb, line 4689
def test_redirect_doesnt_match_unnamed_route
  assert_raise(ActionController::UrlGenerationError) do
    assert_equal "/account?controller=products", url_for(controller: "products", action: "index", only_path: true)
  end

  assert_raise(ActionController::UrlGenerationError) do
    assert_equal "/de/account?controller=products", url_for(controller: "products", action: "index", locale: "de", only_path: true)
  end
end