class TestInternalRoutingParams

Constants

APP
Routes

Public Instance Methods

app() click to toggle source
# File actionpack/test/dispatch/routing_test.rb, line 4932
def app
  APP
end
test_paths_with_partial_dynamic_segments_are_recognised() click to toggle source
# File actionpack/test/dispatch/routing_test.rb, line 4936
def test_paths_with_partial_dynamic_segments_are_recognised
  get "/test_internal/123"
  assert_equal 200, response.status

  assert_equal(
    { controller: "internal", action: "internal", internal: "123" },
    request.path_parameters
  )
end