spec/unit/lib/capybara_helpers_spec.rb in howitzer-2.0.3 vs spec/unit/lib/capybara_helpers_spec.rb in howitzer-2.1.0
- old
+ new
@@ -641,10 +641,11 @@
allow(self).to receive(:remote_file_detector) { file_detector }
stub_const('Selenium::WebDriver::Remote::Capabilities', cap_class)
allow(cap_class).to receive(:new).with(caps) { des_caps }
stub_const('Selenium::WebDriver::Remote::Http::Default', http_class)
allow(http_class).to receive(:new).with(no_args) { http_client }
- expect(http_client).to receive(:timeout=).with(10)
+ expect(http_client).to receive(:read_timeout=).with(10)
+ expect(http_client).to receive(:open_timeout=).with(10)
allow(Capybara::Selenium::Driver).to receive(:new).with(app, kind_of(Hash)) { driver }
expect(driver).to receive(:browser) { driver_browser }
expect(driver_browser).to receive(:file_detector=).with(file_detector)
end
it { is_expected.to eq(driver) }