class method self.served_by

Ruby on Rails 8.1.2

Since v7.2.3

Available in: v7.2.3 v8.0.4 v8.1.2

Signature

self.served_by(host:, port:)

Configuration for the System Test application server.

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

Parameters

host keyreq
port keyreq
Source
# 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

Defined in actionpack/lib/action_dispatch/system_test_case.rb line 167 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionDispatch::SystemTestCase

Type at least 2 characters to search.

↑↓ navigate · open · esc close