1
0
Fork 0
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:
Thomas Walpole 2019-04-15 10:43:54 -07:00
parent 1e2f1b86e4
commit 4c7b5e34ac

View file

@ -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