lib/rubocop/cop/rspec/void_expect.rb in rubocop-rspec-1.33.0 vs lib/rubocop/cop/rspec/void_expect.rb in rubocop-rspec-1.34.0
- old
+ new
@@ -38,10 +38,10 @@
private
def check_expect(node)
return unless void?(node)
- add_offense(node, location: :expression)
+ add_offense(node)
end
def void?(expect)
parent = expect.parent
return true unless parent