# File lib/action_dispatch/testing/integration.rb, line 307 307: def app 308: @app 309: end
Delegate unhandled messages to the current session instance.
# File lib/action_dispatch/testing/integration.rb, line 363 363: def method_missing(sym, *args, &block) 364: reset! unless @integration_session 365: if @integration_session.respond_to?(sym) 366: @integration_session.__send__(sym, *args, &block).tap do 367: copy_session_variables! 368: end 369: else 370: super 371: end 372: 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 339 339: def open_session(app = nil) 340: dup.tap do |session| 341: yield session if block_given? 342: end 343: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.