instance method
create_session
Ruby on Rails 5.2.8.1
Since v5.2.8.1Signature
create_session(app)
No documentation comment.
Parameters
-
appreq
Source
# File actionpack/lib/action_dispatch/testing/integration.rb, line 327
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
Defined in actionpack/lib/action_dispatch/testing/integration.rb line 327
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Integration::Runner