lib/rubocop/cop/rspec/stubbed_mock.rb in rubocop-rspec-2.31.0 vs lib/rubocop/cop/rspec/stubbed_mock.rb in rubocop-rspec-3.0.0.pre

- old
+ new

@@ -134,10 +134,12 @@ PATTERN RESTRICT_ON_SEND = %i[to].freeze def on_send(node) - expectation(node, &method(:on_expectation)) + expectation(node) do |expectation, method_name, matcher| + on_expectation(expectation, method_name, matcher) + end end private def on_expectation(expectation, method_name, matcher)