Methods
- C
- D
- I
- M
- N
- O
- R
Included Modules
Constants
APP_SESSIONS | = | {} |
Attributes
[R] | app |
Class Public methods
new(*args, &blk)
Link
Instance Public methods
create_session(app)
Link
# File actionpack/lib/action_dispatch/testing/integration.rb, line 325 def create_session(app) klass = APP_SESSIONS[app] ||= Class.new(Integration::Session) { # If the app is a Rails app, make url_helpers available on the session # This makes app.url_for and app.foo_path available in the console if app.respond_to?(:routes) include app.routes.url_helpers include app.routes.mounted_helpers end } klass.new(app) end
default_url_options()
Link
default_url_options=(options)
Link
integration_session()
Link
method_missing(sym, *args, &block)
Link
Delegate unhandled messages to the current session instance.
open_session()
Link
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.
reset!()
Link
Reset the current session. This is useful for testing multiple sessions in a single test case.