lib/rubocop/cop/rspec/void_expect.rb in rubocop-rspec-1.29.1 vs lib/rubocop/cop/rspec/void_expect.rb in rubocop-rspec-1.30.0

- old
+ new

@@ -23,21 +23,24 @@ (block #expect? (args) _body) PATTERN def on_send(node) return unless expect?(node) + check_expect(node) end def on_block(node) return unless expect_block?(node) + check_expect(node) end private def check_expect(node) return unless void?(node) + add_offense(node, location: :expression) end def void?(expect) parent = expect.parent