lib/rubocop/cop/rspec/multiple_expectations.rb in rubocop-rspec-2.25.0 vs lib/rubocop/cop/rspec/multiple_expectations.rb in rubocop-rspec-2.26.0

- old
+ new

@@ -68,21 +68,21 @@ ANYTHING = ->(_node) { true } TRUE = ->(node) { node.true_type? } # @!method aggregate_failures?(node) - def_node_matcher :aggregate_failures?, <<-PATTERN + 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 nil? #Expectations.all ...)' # @!method aggregate_failures_block?(node) - def_node_matcher :aggregate_failures_block?, <<-PATTERN + def_node_matcher :aggregate_failures_block?, <<~PATTERN (block (send nil? :aggregate_failures ...) ...) PATTERN def on_block(node) # rubocop:disable InternalAffairs/NumblockHandler return unless example?(node)