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

- old
+ new

@@ -66,20 +66,20 @@ # end # # @param node [RuboCop::AST::Node] # # @yield [Symbol] subject name - def_node_matcher :subject?, <<-PATTERN + def_node_matcher :subject?, <<~PATTERN (block (send nil? { #Subjects.all (sym $_) | $#Subjects.all } ) args ...) PATTERN # @!method let?(node) # Find a memoized helper - def_node_matcher :let?, <<-PATTERN + def_node_matcher :let?, <<~PATTERN (block (send nil? :let (sym $_) ) args ...) PATTERN @@ -92,11 +92,11 @@ # allow(foo).to receive(:bar).with(1).and_return(2) # expect(foo).to receive(:bar) # expect(foo).to receive(:bar).with(1) # expect(foo).to receive(:bar).with(1).and_return(2) # - def_node_matcher :message_expectation?, <<-PATTERN + def_node_matcher :message_expectation?, <<~PATTERN (send { (send nil? { :expect :allow } (send nil? %)) (send nil? :is_expected) } @@ -104,10 +104,10 @@ #message_expectation_matcher? ) PATTERN # @!method message_expectation_matcher?(node) - def_node_search :message_expectation_matcher?, <<-PATTERN + def_node_search :message_expectation_matcher?, <<~PATTERN (send nil? { :receive :receive_messages :receive_message_chain :have_received } ...) PATTERN