提交 5c86286d 编写于 作者: S Sven Fuchs 提交者: Aaron Patterson

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
上级 66c09372
......@@ -363,6 +363,10 @@ def url_options
integration_session.url_options
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.
def method_missing(sym, *args, &block)
reset! unless integration_session
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册