mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Partially revert 0bfdd1d
The `Capybara.server=` proc acceptance restored in Capyara 3.0.1.
Ref: 8f115d94e0
This commit is contained in:
parent
e6f5e75ef1
commit
cb2f69659e
1 changed files with 5 additions and 1 deletions
|
@ -5,6 +5,10 @@ require "capybara/dsl"
|
||||||
require "action_dispatch/system_testing/server"
|
require "action_dispatch/system_testing/server"
|
||||||
|
|
||||||
class ServerTest < ActiveSupport::TestCase
|
class ServerTest < ActiveSupport::TestCase
|
||||||
|
setup do
|
||||||
|
@old_capybara_server = Capybara.server
|
||||||
|
end
|
||||||
|
|
||||||
test "port is always included" do
|
test "port is always included" do
|
||||||
ActionDispatch::SystemTesting::Server.new.run
|
ActionDispatch::SystemTesting::Server.new.run
|
||||||
assert Capybara.always_include_port, "expected Capybara.always_include_port to be true"
|
assert Capybara.always_include_port, "expected Capybara.always_include_port to be true"
|
||||||
|
@ -23,6 +27,6 @@ class ServerTest < ActiveSupport::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
teardown do
|
teardown do
|
||||||
Capybara.server = :default
|
Capybara.server = @old_capybara_server
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue