1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib/action_dispatch/routing/endpoint.rb
yui-knk b50e88ebdf Make assert_recognizes to traverse mounted engines
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.
2016-04-23 11:40:50 +09:00

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