mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
b50e88ebdf
Before this commit paths of mounted engines are not traversed when `assert_recognizes` is called, causing strange test results. This commit enable to traverse mounted paths.
12 lines
446 B
Ruby
12 lines
446 B
Ruby
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
|