Class Index [+]

Quicksearch

ActionDispatch::Integration::Runner

Public Instance Methods

app() click to toggle source
     # File lib/action_dispatch/testing/integration.rb, line 309
309:       def app
310:         @app
311:       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 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_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 341
341:       def open_session(app = nil)
342:         dup.tap do |session|
343:           yield session if block_given?
344:         end
345:       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 315
315:       def reset!
316:         @integration_session = Integration::Session.new(app)
317:       end
url_options() click to toggle source
     # File lib/action_dispatch/testing/integration.rb, line 359
359:       def url_options
360:         reset! unless @integration_session
361:         @integration_session.url_options
362:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.