lib/rubocop/cop/rspec/yield.rb in rubocop-rspec-1.42.0 vs lib/rubocop/cop/rspec/yield.rb in rubocop-rspec-1.43.0

- old
+ new

@@ -9,10 +9,10 @@ # # bad # allow(foo).to receive(:bar) { |&block| block.call(1) } # # # good # expect(foo).to be(:bar).and_yield(1) - class Yield < Cop + class Yield < Base extend AutoCorrector include RangeHelp MSG = 'Use `.and_yield`.'