lib/rubocop/cop/rspec/yield.rb in rubocop-rspec-2.7.0 vs lib/rubocop/cop/rspec/yield.rb in rubocop-rspec-2.8.0

- old
+ new

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