lib/rubocop/cop/rspec/multiple_expectations.rb in rubocop-rspec-2.2.0 vs lib/rubocop/cop/rspec/multiple_expectations.rb in rubocop-rspec-2.3.0

- old
+ new

@@ -51,17 +51,20 @@ MSG = 'Example has too many expectations [%<total>d/%<max>d].' ANYTHING = ->(_node) { true } TRUE = ->(node) { node.true_type? } + # @!method aggregate_failures?(node) def_node_matcher :aggregate_failures?, <<-PATTERN (block { (send _ _ <(sym :aggregate_failures) ...>) (send _ _ ... (hash <(pair (sym :aggregate_failures) %1) ...>)) } ...) PATTERN + # @!method expect?(node) def_node_matcher :expect?, send_pattern('#Expectations.all') + # @!method aggregate_failures_block?(node) def_node_matcher :aggregate_failures_block?, <<-PATTERN (block (send nil? :aggregate_failures ...) ...) PATTERN def on_block(node)