diff options
-rw-r--r-- | actionpack/test/dispatch/system_testing/server_test.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/actionpack/test/dispatch/system_testing/server_test.rb b/actionpack/test/dispatch/system_testing/server_test.rb index 33d2f6a645..740e90a4da 100644 --- a/actionpack/test/dispatch/system_testing/server_test.rb +++ b/actionpack/test/dispatch/system_testing/server_test.rb @@ -5,6 +5,10 @@ require "capybara/dsl" require "action_dispatch/system_testing/server" class ServerTest < ActiveSupport::TestCase + setup do + @old_capybara_server = Capybara.server + end + test "port is always included" do ActionDispatch::SystemTesting::Server.new.run assert Capybara.always_include_port, "expected Capybara.always_include_port to be true" @@ -23,6 +27,6 @@ class ServerTest < ActiveSupport::TestCase end teardown do - Capybara.server = :default + Capybara.server = @old_capybara_server end end |