lib/rubocop/cop/rspec/stubbed_mock.rb in rubocop-rspec-2.15.0 vs lib/rubocop/cop/rspec/stubbed_mock.rb in rubocop-rspec-2.16.0

- old
+ new

@@ -131,9 +131,11 @@ (send nil? { :receive :receive_message_chain } ... block_pass) # receive(:foo, &canned) (send (send nil? :receive ...) :with ... block_pass) # receive(:foo).with('foo', &canned) } PATTERN + RESTRICT_ON_SEND = %i[to].freeze + def on_send(node) expectation(node, &method(:on_expectation)) end private