lib/rubocop/cop/rspec/multiple_expectations.rb in rubocop-rspec-2.29.2 vs lib/rubocop/cop/rspec/multiple_expectations.rb in rubocop-rspec-2.30.0
- old
+ new
@@ -70,10 +70,10 @@
include ConfigurableMax
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
(block {
(send _ _ <(sym :aggregate_failures) ...>)