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
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/system_testing/server.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/actionpack-5.2.3/lib/action_dispatch/system_testing/server.rb
actionpack-6.0.1 lib/action_dispatch/system_testing/server.rb
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/actionpack-6.0.0/lib/action_dispatch/system_testing/server.rb
actionpack-6.0.1.rc1 lib/action_dispatch/system_testing/server.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/actionpack-6.0.0/lib/action_dispatch/system_testing/server.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/actionpack-5.2.3/lib/action_dispatch/system_testing/server.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/system_testing/server.rb
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/system_testing/server.rb
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/actionpack-5.2.3/lib/action_dispatch/system_testing/server.rb
zuora_connect_ui-0.8.3 vendor/ruby/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/system_testing/server.rb
zuora_connect_ui-0.8.3 vendor/ruby/2.6.0/gems/actionpack-5.2.3/lib/action_dispatch/system_testing/server.rb
zuora_connect_ui-0.8.2 vendor/ruby/2.6.0/gems/actionpack-5.2.3/lib/action_dispatch/system_testing/server.rb
zuora_connect_ui-0.8.2 vendor/ruby/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/system_testing/server.rb
actionpack-6.0.0 lib/action_dispatch/system_testing/server.rb
zuora_connect_ui-0.8.1 vendor/ruby/2.6.0/gems/actionpack-5.2.3/lib/action_dispatch/system_testing/server.rb
zuora_connect_ui-0.8.0 vendor/ruby/2.6.0/gems/actionpack-5.2.3/lib/action_dispatch/system_testing/server.rb
spiral_form-0.1.1 vendor/bundle/gems/actionpack-5.2.3/lib/action_dispatch/system_testing/server.rb
spiral_form-0.1.0 vendor/bundle/gems/actionpack-5.2.3/lib/action_dispatch/system_testing/server.rb
actionpack-6.0.0.rc2 lib/action_dispatch/system_testing/server.rb