lib/rubocop/cop/rspec/multiple_expectations.rb in rubocop-rspec-3.0.2 vs lib/rubocop/cop/rspec/multiple_expectations.rb in rubocop-rspec-3.0.3
- old
+ new
@@ -65,15 +65,15 @@
# expect(user.age).to eq(22)
# end
# end
#
class MultipleExpectations < Base
- include ConfigurableMax
-
MSG = 'Example has too many expectations [%<total>d/%<max>d].'
ANYTHING = ->(_node) { true }
TRUE_NODE = lambda(&:true_type?)
+
+ exclude_limit 'Max'
# @!method aggregate_failures?(node)
def_node_matcher :aggregate_failures?, <<~PATTERN
(block {
(send _ _ <(sym :aggregate_failures) ...>)