Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit 5c86286dd6f8b58241492004e1fd872e217aca08 1 parent 66c0937
@svenfuchs svenfuchs authored tenderlove committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 actionpack/lib/action_dispatch/testing/integration.rb
View
4 actionpack/lib/action_dispatch/testing/integration.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.