class method self.served_by

Ruby on Rails 8.0.5.1

Since v7.2.3.2

Available in: v7.2.3.2 v8.0.5.1 v8.1.3.1 edge

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.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close