Sha256: d618b37f6544633d9846c8cfdf523183afc38a683e3207204a1778941f51fab1

Contents?: true

Size: 580 Bytes

Versions: 225

Compression:

Stored size: 580 Bytes

Contents

# frozen_string_literal: true

module ActionDispatch
  module SystemTesting
    class Server # :nodoc:
      class << self
        attr_accessor :silence_puma
      end

      self.silence_puma = false

      def run
        setup
      end

      private
        def setup
          set_server
          set_port
        end

        def set_server
          Capybara.server = :puma, { Silent: self.class.silence_puma } if Capybara.server == Capybara.servers[:default]
        end

        def set_port
          Capybara.always_include_port = true
        end
    end
  end
end

Version data entries

225 entries across 212 versions & 14 rubygems

Version Path
jets-1.8.9 vendor/rails/actionpack/lib/action_dispatch/system_testing/server.rb
jets-1.8.8 vendor/rails/actionpack/lib/action_dispatch/system_testing/server.rb
actionpack-6.0.0.beta2 lib/action_dispatch/system_testing/server.rb
jets-1.8.7 vendor/rails/actionpack/lib/action_dispatch/system_testing/server.rb
jets-1.8.6 vendor/rails/actionpack/lib/action_dispatch/system_testing/server.rb
jets-1.8.5 vendor/rails/actionpack/lib/action_dispatch/system_testing/server.rb
jets-1.8.4 vendor/rails/actionpack/lib/action_dispatch/system_testing/server.rb
jets-1.8.3 vendor/rails/actionpack/lib/action_dispatch/system_testing/server.rb
jets-1.8.2 vendor/rails/actionpack/lib/action_dispatch/system_testing/server.rb
jets-1.8.1 vendor/rails/actionpack/lib/action_dispatch/system_testing/server.rb
jets-1.8.0 vendor/rails/actionpack/lib/action_dispatch/system_testing/server.rb
jets-1.7.2 vendor/rails/actionpack/lib/action_dispatch/system_testing/server.rb
jets-1.7.1 vendor/rails/actionpack/lib/action_dispatch/system_testing/server.rb
jets-1.7.0 vendor/rails/actionpack/lib/action_dispatch/system_testing/server.rb
jets-1.6.9 vendor/rails/actionpack/lib/action_dispatch/system_testing/server.rb
jets-1.6.8 vendor/rails/actionpack/lib/action_dispatch/system_testing/server.rb
jets-1.6.7 vendor/rails/actionpack/lib/action_dispatch/system_testing/server.rb
jets-1.6.6 vendor/rails/actionpack/lib/action_dispatch/system_testing/server.rb
jets-1.6.5 vendor/rails/actionpack/lib/action_dispatch/system_testing/server.rb
jets-1.6.4 vendor/rails/actionpack/lib/action_dispatch/system_testing/server.rb