Method: Capybara.run_default_server

Defined in:
lib/capybara.rb

.run_default_server(app, port) ⇒ Object

Runs Capybara's default server for the given application and port under most circumstances you should not have to call this method manually.

Parameters:

  • app (Rack Application)

    The rack application to run

  • port (Integer)

    The port to run the application on

[View source]

253
254
255
# File 'lib/capybara.rb', line 253

def run_default_server(app, port)
  servers[:puma].call(app, port, server_host)
end