Skip to content

Commit

Permalink
Merge pull request #1896 from rubocop/backport-pr-1881
Browse files Browse the repository at this point in the history
Fix an edge offense for `Style/SymbolProc`
  • Loading branch information
bquorning authored Jun 2, 2024
2 parents 0d51335 + 7067b79 commit cd279a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubocop/cop/rspec/multiple_expectations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class MultipleExpectations < Base
MSG = 'Example has too many expectations [%<total>d/%<max>d].'

ANYTHING = ->(_node) { true }
TRUE = ->(node) { node.true_type? }
TRUE = lambda(&:true_type?)

# @!method aggregate_failures?(node)
def_node_matcher :aggregate_failures?, <<~PATTERN
Expand Down

0 comments on commit cd279a8

Please sign in to comment.