Module: ActionController::Integration::Runner
- Defined in:
- lib/webrat_rspec_rails/extensions/action_controller_integration_runner.rb
Instance Method Summary collapse
-
#method_missing(sym, *args, &block) ⇒ Object
TODO: Make this a rails patch.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sym, *args, &block) ⇒ Object
TODO: Make this a rails patch
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/webrat_rspec_rails/extensions/action_controller_integration_runner.rb', line 3 def method_missing(sym, *args, &block) reset! unless @integration_session if @integration_session.respond_to?(sym) returning @integration_session.__send__(sym, *args, &block) do copy_session_variables! end else super end end |