lib/rubocop/cop/rspec/message_chain.rb in rubocop-rspec-1.32.0 vs lib/rubocop/cop/rspec/message_chain.rb in rubocop-rspec-1.33.0

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + module RuboCop module Cop module RSpec # Check that chains of messages are not being stubbed. # @@ -10,10 +12,10 @@ # # better # thing = Thing.new(baz: 42) # allow(foo).to receive(bar: thing) # class MessageChain < Cop - MSG = 'Avoid stubbing using `%<method>s`.'.freeze + MSG = 'Avoid stubbing using `%<method>s`.' def_node_matcher :message_chain, <<-PATTERN (send _ {:receive_message_chain :stub_chain} ...) PATTERN