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:
parent
156038a084
commit
a9508fc114
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue