lib/rubocop/cop/rspec/instance_spy.rb in rubocop-rspec-1.33.0 vs lib/rubocop/cop/rspec/instance_spy.rb in rubocop-rspec-1.34.0
- old
+ new
@@ -41,10 +41,10 @@
def on_block(node)
return unless example?(node)
null_double(node) do |var, receiver|
have_received_usage(node) do |expected|
- add_offense(receiver, location: :expression) if expected == var
+ add_offense(receiver) if expected == var
end
end
end
def autocorrect(node)