# File actionpack/lib/action_dispatch/testing/integration.rb, line 334defcreate_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.ifapp.respond_to?(:routes) &&app.routes.is_a?(ActionDispatch::Routing::RouteSet)
includeapp.routes.url_helpersincludeapp.routes.mounted_helpersend
}
klass.new(app)
end