mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
rewrite expectation to work with rspec on rbx
This commit is contained in:
parent
913fea7f4c
commit
3fc2103181
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue