1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

update server tests

This commit is contained in:
Thomas Walpole 2016-07-25 11:34:15 -07:00
parent d4b0137f8e
commit 01076df92c

View file

@ -116,7 +116,7 @@ RSpec.describe Capybara::Server do
expect {
server1.wait_for_pending_requests
}.to change{done}.from(false).to(true)
expect(server2.instance_variable_get('@middleware').pending_requests?).to eq(false)
expect(server2.send(:pending_requests?)).to eq(false)
end
end
@ -165,7 +165,7 @@ RSpec.describe Capybara::Server do
expect {
server1.wait_for_pending_requests
}.to change{done}.from(false).to(true)
expect(server2.instance_variable_get('@middleware').pending_requests?).to eq(true)
expect(server2.send(:pending_requests?)).to eq(true)
end
end