From 1f06b16bcc91f4937012facb6abb576fe9484100 Mon Sep 17 00:00:00 2001 From: Thomas Walpole Date: Sun, 14 Apr 2024 15:48:35 -0700 Subject: [PATCH] missing parameter name --- lib/capybara/rspec/matcher_proxies.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/capybara/rspec/matcher_proxies.rb b/lib/capybara/rspec/matcher_proxies.rb index 0b5de6d77..16109ff2c 100644 --- a/lib/capybara/rspec/matcher_proxies.rb +++ b/lib/capybara/rspec/matcher_proxies.rb @@ -10,9 +10,9 @@ def all(*args, **kwargs, &) end end - def within(*args, **kwargs, &) + def within(*args, **kwargs, &block) if block - within_element(*args, **kwargs, &) + within_element(*args, **kwargs, &block) else be_within(*args) end