Method: Rack::Test::Methods#build_rack_test_session
- Defined in:
- lib/rack/test/methods.rb
#build_rack_test_session(_name) ⇒ Object
Create a new Rack::Test::Session for #app.
40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/rack/test/methods.rb', line 40 def build_rack_test_session(_name) # :nodoc: if respond_to?(:build_rack_mock_session, true) # Backwards compatibility for capybara build_rack_mock_session else if respond_to?(:default_host) Session.new(app, default_host) else Session.new(app) end end end |