Class: Capybara::RackTestWithServer::Driver

Inherits:
Capybara::RackTest::Driver
  • Object
show all
Defined in:
lib/capybara-rack_test_with_server.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app, options = {}) ⇒ Driver

Returns a new instance of Driver.



7
8
9
10
11
12
# File 'lib/capybara-rack_test_with_server.rb', line 7

def initialize(app, options = {})
  super

  @rack_server = Capybara::Server.new(@app)
  @rack_server.boot if Capybara.run_server
end

Instance Attribute Details

#rack_serverObject (readonly)

Returns the value of attribute rack_server.



5
6
7
# File 'lib/capybara-rack_test_with_server.rb', line 5

def rack_server
  @rack_server
end