From cc01c56b4c9c662250e49ebdc78dae3e16baac45 Mon Sep 17 00:00:00 2001 From: Thomas Walpole Date: Sun, 14 Apr 2024 15:35:40 -0700 Subject: [PATCH] Fix syntax error --- lib/capybara/selector/filter_set.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/capybara/selector/filter_set.rb b/lib/capybara/selector/filter_set.rb index c8a9484e1..0360c2f83 100644 --- a/lib/capybara/selector/filter_set.rb +++ b/lib/capybara/selector/filter_set.rb @@ -15,9 +15,9 @@ def initialize(name, &block) instance_eval(&block) if block end - def node_filter(names, *types, **options, &) + def node_filter(names, *types, **options, &filter_block) Array(names).each do |name| - add_filter(name, Filters::NodeFilter, *types, **options, &) + add_filter(name, Filters::NodeFilter, *types, **options, &filter_block) end end alias_method :filter, :node_filter