diff options
author | Sven Fuchs <svenfuchs@artweb-design.de> | 2010-11-21 13:46:25 +0100 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-22 15:42:28 -0800 |
commit | 5c86286dd6f8b58241492004e1fd872e217aca08 (patch) | |
tree | 50ee2427331d212983d3ea29b1dcc439c28d3faa /actionpack | |
parent | 66c09372f3ef3d4ca2b99d44cf1859d585b9dcb3 (diff) | |
download | rails-5c86286dd6f8b58241492004e1fd872e217aca08.tar.gz rails-5c86286dd6f8b58241492004e1fd872e217aca08.tar.bz2 rails-5c86286dd6f8b58241492004e1fd872e217aca08.zip |
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
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/testing/integration.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/testing/integration.rb b/actionpack/lib/action_dispatch/testing/integration.rb index fee8cad9f5..e0a17130f8 100644 --- a/actionpack/lib/action_dispatch/testing/integration.rb +++ b/actionpack/lib/action_dispatch/testing/integration.rb @@ -363,6 +363,10 @@ module ActionDispatch 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 |