class method
self.served_by
Ruby on Rails 8.1.2
Since v7.2.3Signature
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
-
hostkeyreq -
portkeyreq
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