mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
256a44c439
Make `assert_recognizes` to traverse mounted engines
14 lines
477 B
Ruby
14 lines
477 B
Ruby
# frozen_string_literal: true
|
|
|
|
module ActionDispatch
|
|
module Routing
|
|
class Endpoint # :nodoc:
|
|
def dispatcher?; false; end
|
|
def redirect?; false; end
|
|
def engine?; rack_app.respond_to?(:routes); end
|
|
def matches?(req); true; end
|
|
def app; self; end
|
|
def rack_app; app; end
|
|
end
|
|
end
|
|
end
|