Skip to content
  • Andrew White's avatar
    9232ba71
    Make engine check more explicit · 9232ba71
    Andrew White authored
    Not everything that responds to `routes` is a Rails engine - for example
    a Grape API endpoint will have a `routes` method but can't be used with
    `assert_recognizes` as it doesn't respond to `recognize_path_with_request`.
    
    Fixes #32312.
    9232ba71
    Make engine check more explicit
    Andrew White authored
    Not everything that responds to `routes` is a Rails engine - for example
    a Grape API endpoint will have a `routes` method but can't be used with
    `assert_recognizes` as it doesn't respond to `recognize_path_with_request`.
    
    Fixes #32312.
Loading