class TestGlobRoutingMapper

Constants

APP

include Routes.url_helpers

Routes

Public Instance Methods

app() click to toggle source
# File actionpack/test/dispatch/routing_test.rb, line 4229
def app; APP end
test_glob_constraint() click to toggle source
# File actionpack/test/dispatch/routing_test.rb, line 4231
def test_glob_constraint
  get "/dummy"
  assert_equal "301", @response.code
  assert_equal "/not_cars", @response.header["Location"].match("/[^/]+$")[0]
end
test_glob_constraint_skip_all() click to toggle source
# File actionpack/test/dispatch/routing_test.rb, line 4241
def test_glob_constraint_skip_all
  get "/missing"
  assert_equal "404", @response.code
end
test_glob_constraint_skip_route() click to toggle source
# File actionpack/test/dispatch/routing_test.rb, line 4237
def test_glob_constraint_skip_route
  get "/cars"
  assert_equal "200", @response.code
end