Sha256: e1296f211966cdc44008d1b3a7a1ebe64c44d884c87357f2f9fd464185a9b8ba

Contents?: true

Size: 531 Bytes

Versions: 2

Compression:

Stored size: 531 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 }
        end

        def set_port
          Capybara.always_include_port = true
        end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
actionpack-5.2.0.beta2 lib/action_dispatch/system_testing/server.rb
actionpack-5.2.0.beta1 lib/action_dispatch/system_testing/server.rb