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

- old
+ new

@@ -19,17 +19,17 @@ # end class VerifiedDoubles < Cop MSG = 'Prefer using verifying doubles over normal doubles.'.freeze def_node_matcher :unverified_double, <<-PATTERN - {(send nil {:double :spy} $_ ...) } + {(send nil? {:double :spy} $_ ...) } PATTERN def on_send(node) unverified_double(node) do |name| return if name.sym_type? && cop_config['IgnoreSymbolicNames'] - add_offense(node, :expression) + add_offense(node, location: :expression) end end end end end