We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58e6c66 commit f0f3d11Copy full SHA for f0f3d11
rb/spec/unit/selenium/webdriver/common/selenium_manager_spec.rb
@@ -98,12 +98,9 @@ module WebDriver
98
stdout = '{"result": "value", "logs": []}'
99
allow(Open3).to receive(:capture3).and_return([stdout, 'stderr', status])
100
101
- expect(WebDriver.logger).to receive(:info).with(
102
- a_string_including('No valid process exit status'),
103
- hash_including(id: :selenium_manager)
104
- )
105
-
106
- expect(described_class.send(:run, 'anything')).to eq 'value'
+ expect {
+ expect(described_class.send(:run, 'anything')).to eq 'value'
+ }.to have_info(:info)
107
end
108
109
it 'raises if result is nil even with successful exitstatus' do
0 commit comments