mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
add respond_to? to ActionDispatch::Integration::Runner
since Runner uses method_missing to delegate to the integration session it also should define respond_to? accordingly
This commit is contained in:
parent
66c09372f3
commit
5c86286dd6
1 changed files with 4 additions and 0 deletions
|
@ -363,6 +363,10 @@ module ActionDispatch
|
||||||
integration_session.url_options
|
integration_session.url_options
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def respond_to?(method, include_private = false)
|
||||||
|
@integration_session.respond_to?(method, include_private) || super
|
||||||
|
end
|
||||||
|
|
||||||
# Delegate unhandled messages to the current session instance.
|
# Delegate unhandled messages to the current session instance.
|
||||||
def method_missing(sym, *args, &block)
|
def method_missing(sym, *args, &block)
|
||||||
reset! unless integration_session
|
reset! unless integration_session
|
||||||
|
|
Loading…
Reference in a new issue