rewrite expectation to work with rspec on rbx

This commit is contained in:
Thomas Walpole 2017-01-09 17:12:54 -08:00
parent 913fea7f4c
commit 3fc2103181
1 changed files with 2 additions and 2 deletions

View File

@ -14,8 +14,8 @@ RSpec.describe Capybara do
end
it "should be accesible as the deprecated default_wait_time" do
expect_any_instance_of(Kernel).to receive(:warn).once.with('DEPRECATED: #default_wait_time= is deprecated, please use #default_max_wait_time= instead')
expect_any_instance_of(Kernel).to receive(:warn).once.with('DEPRECATED: #default_wait_time is deprecated, please use #default_max_wait_time instead')
expect(Capybara).to receive(:warn).ordered.with('DEPRECATED: #default_wait_time= is deprecated, please use #default_max_wait_time= instead')
expect(Capybara).to receive(:warn).ordered.with('DEPRECATED: #default_wait_time is deprecated, please use #default_max_wait_time instead')
@previous_default_time = Capybara.default_max_wait_time
Capybara.default_wait_time = 5
expect(Capybara.default_wait_time).to eq(5)