lib/rubocop/cop/rspec/void_expect.rb in rubocop-rspec-1.18.0 vs lib/rubocop/cop/rspec/void_expect.rb in rubocop-rspec-1.19.0

- old
+ new

@@ -14,11 +14,11 @@ class VoidExpect < Cop MSG = 'Do not use `expect()` without `.to` or `.not_to`. ' \ 'Chain the methods or remove it.'.freeze def_node_matcher :expect?, <<-PATTERN - (send nil :expect ...) + (send nil? :expect ...) PATTERN def_node_matcher :expect_block?, <<-PATTERN (block #expect? (args) _body) PATTERN @@ -35,10 +35,10 @@ private def check_expect(node) return unless void?(node) - add_offense(node, :expression) + add_offense(node, location: :expression) end def void?(expect) parent = expect.parent return true unless parent