aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch/system_testing/server_test.rb
blob: 10412d63673ca18c557b5663779536e53564cc88 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require "abstract_unit"
require "capybara/dsl"
require "action_dispatch/system_testing/server"

class ServerTest < ActiveSupport::TestCase
  setup do
    ActionDispatch::SystemTesting::Server.new.run
  end

  test "initializing the server port" do
    assert_includes Capybara.servers, :rails_puma
  end

  test "port is always included" do
    assert Capybara.always_include_port, "expected Capybara.always_include_port to be true"
  end
end