Skip to content

Commit

Permalink
the error class name is different in different ruby versions
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Jul 28, 2023
1 parent bf1ac1e commit 43f8ac4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/webdrivers/geckodriver_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@
expect(Webdrivers::System).to have_received(:download).with(url, geckodriver.driver_path)
end

it 'does something when a wrong version is supplied' do
it 'raises error when a wrong version is supplied' do
geckodriver.required_version = '0.2.0'

msg = /Net::HTTPServerException: 404 "Not Found"/
msg = /404 "Not Found"/
expect { geckodriver.update }.to raise_error(StandardError, msg)
end

Expand Down

0 comments on commit 43f8ac4

Please sign in to comment.