lib/rubocop/cop/rspec/void_expect.rb in rubocop-rspec-2.12.1 vs lib/rubocop/cop/rspec/void_expect.rb in rubocop-rspec-2.13.0

- old
+ new

@@ -9,10 +9,11 @@ # # bad # expect(something) # # # good # expect(something).to be(1) + # class VoidExpect < Base MSG = 'Do not use `expect()` without `.to` or `.not_to`. ' \ 'Chain the methods or remove it.' RESTRICT_ON_SEND = %i[expect].freeze @@ -30,10 +31,10 @@ return unless expect?(node) check_expect(node) end - def on_block(node) + def on_block(node) # rubocop:disable InternalAffairs/NumblockHandler return unless expect_block?(node) check_expect(node) end