spec/capybara_spec.rb in capybara-2.11.0 vs spec/capybara_spec.rb in capybara-2.12.0

- old
+ new

@@ -12,11 +12,11 @@ Capybara.default_max_wait_time = 5 expect(Capybara.default_max_wait_time).to eq(5) 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) expect(Capybara.default_max_wait_time).to eq(5) end