Method: ActionDispatch::SystemTestCase.served_by

Defined in:
actionpack/lib/action_dispatch/system_test_case.rb

.served_by(host:, port:) ⇒ Object

Configuration for the System Test application server.

By default this is localhost. This method allows the host and port to be specified manually.



167
168
169
170
# File 'actionpack/lib/action_dispatch/system_test_case.rb', line 167

def self.served_by(host:, port:)
  Capybara.server_host = host
  Capybara.server_port = port
end