Class: ActionDispatch::SystemTesting::Server
Do not use. This class is for internal use only.
Relationships & Source Files | |
Inherits: | Object |
Defined in: | actionpack/lib/action_dispatch/system_testing/server.rb |
Class Attribute Summary
Instance Method Summary
- #run
- #set_port private
- #set_server private
- #setup private
Class Attribute Details
.silence_puma (rw)
[ GitHub ]# File 'actionpack/lib/action_dispatch/system_testing/server.rb', line 9
attr_accessor :silence_puma
Instance Method Details
#run
[ GitHub ]# File 'actionpack/lib/action_dispatch/system_testing/server.rb', line 14
def run setup end
#set_port (private)
[ GitHub ]# File 'actionpack/lib/action_dispatch/system_testing/server.rb', line 28
def set_port Capybara.always_include_port = true end
#set_server (private)
[ GitHub ]# File 'actionpack/lib/action_dispatch/system_testing/server.rb', line 24
def set_server Capybara.server = :puma, { Silent: self.class.silence_puma } if Capybara.server == Capybara.servers[:default] end
#setup (private)
[ GitHub ]# File 'actionpack/lib/action_dispatch/system_testing/server.rb', line 19
def setup set_server set_port end