mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Remove ruby 2.7 deprecated usage of Proc.new
This commit is contained in:
parent
1e2f1b86e4
commit
4c7b5e34ac
1 changed files with 2 additions and 2 deletions
|
@ -10,9 +10,9 @@ module Capybara
|
|||
end
|
||||
end
|
||||
|
||||
def within(*args)
|
||||
def within(*args, &block)
|
||||
if block_given?
|
||||
within_element(*args, &Proc.new)
|
||||
within_element(*args, &block)
|
||||
else
|
||||
be_within(*args)
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue