Skip to content

Commit

Permalink
Fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
twalpole committed Apr 14, 2024
1 parent 4fd2c2f commit dfa561c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/capybara/selector/filter_set.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dfa561c

Please sign in to comment.