Skip to content

Commit 2e46616

Browse files
committed
Catch more specific error
1 parent b559603 commit 2e46616

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/browser_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ module Ferrum
239239
browser.execute "setTimeout(function() { omg }, 0)"
240240
sleep 0.01
241241
browser.execute ""
242-
}.to raise_error(Ferrum::JavaScriptError)
242+
}.to raise_error(Ferrum::JavaScriptError, /ReferenceError.*omg/)
243243

244244
# should not raise again
245245
expect(browser.evaluate("1+1")).to eq(2)

0 commit comments

Comments
 (0)