Class Index [+]

Quicksearch

ActionDispatch::Integration::Runner

Public Instance Methods

app() click to toggle source
     # File lib/action_dispatch/testing/integration.rb, line 307
307:       def app
308:         @app
309:       end
method_missing(sym, *args, &block) click to toggle source

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_session(app = nil) click to toggle source

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
reset!() click to toggle source

Reset the current session. This is useful for testing multiple sessions in a single test case.

     # File lib/action_dispatch/testing/integration.rb, line 313
313:       def reset!
314:         @integration_session = Integration::Session.new(app)
315:       end
url_options() click to toggle source
     # File lib/action_dispatch/testing/integration.rb, line 357
357:       def url_options
358:         reset! unless @integration_session
359:         @integration_session.url_options
360:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.