123456789_123456789_123456789_123456789_123456789_

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

Class Attribute Details

.silence_puma (rw)

[ GitHub ]

  
# File 'actionpack/lib/action_dispatch/system_testing/server.rb', line 7

attr_accessor :silence_puma

Instance Method Details

#run

[ GitHub ]

  
# File 'actionpack/lib/action_dispatch/system_testing/server.rb', line 12

def run
  setup
end

#set_port (private)

[ GitHub ]

  
# File 'actionpack/lib/action_dispatch/system_testing/server.rb', line 26

def set_port
  Capybara.always_include_port = true
end

#set_server (private)

[ GitHub ]

  
# File 'actionpack/lib/action_dispatch/system_testing/server.rb', line 22

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 17

def setup
  set_server
  set_port
end