lib/rubocop/cop/rspec/instance_variable.rb in rubocop-rspec-1.33.0 vs lib/rubocop/cop/rspec/instance_variable.rb in rubocop-rspec-1.34.0
- old
+ new
@@ -66,10 +66,10 @@
ivar_usage(node) do |ivar, name|
return if inside_dynamic_class?(ivar)
return if assignment_only? && !ivar_assigned?(node, name)
- add_offense(ivar, location: :expression)
+ add_offense(ivar)
end
end
private