lib/rubocop/cop/rspec/message_chain.rb in rubocop-rspec-1.42.0 vs lib/rubocop/cop/rspec/message_chain.rb in rubocop-rspec-1.43.0
- old
+ new
@@ -11,10 +11,10 @@
#
# # better
# thing = Thing.new(baz: 42)
# allow(foo).to receive(:bar).and_return(thing)
#
- class MessageChain < Cop
+ class MessageChain < Base
MSG = 'Avoid stubbing using `%<method>s`.'
def_node_matcher :message_chain, <<-PATTERN
(send _ {:receive_message_chain :stub_chain} ...)
PATTERN