1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Fix raise() syntax

The `ArgumentError()` syntax is wrong and generates a pretty weird error:

NoMethodError: undefined method `ArgumentError' for #<Capybara::Session>
This commit is contained in:
Alessandro Lepore 2019-10-03 16:39:08 +02:00
parent 156038a084
commit a9508fc114

View file

@ -528,7 +528,7 @@ module Capybara
when Proc
_switch_to_window { window_or_proc.call }
else
raise ArgumentError('`#within_window` requires a `Capybara::Window` instance or a lambda')
raise ArgumentError, '`#within_window` requires a `Capybara::Window` instance or a lambda'
end
begin