# File lib/action_dispatch/testing/integration.rb, line 309 309: def app 310: @app 311: end
Delegate unhandled messages to the current session instance.
# File lib/action_dispatch/testing/integration.rb, line 365 365: def method_missing(sym, *args, &block) 366: reset! unless @integration_session 367: if @integration_session.respond_to?(sym) 368: @integration_session.__send__(sym, *args, &block).tap do 369: copy_session_variables! 370: end 371: else 372: super 373: end 374: end
Open a new session instance. If a block is given, the new session is yielded to the block before being returned.
session = open_session do |sess| sess.extend(CustomAssertions) end
By default, a single session is automatically created for you, but you can use this method to open multiple sessions that ought to be tested simultaneously.
# File lib/action_dispatch/testing/integration.rb, line 341 341: def open_session(app = nil) 342: dup.tap do |session| 343: yield session if block_given? 344: end 345: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.