lib/rubocop/cop/rspec/verified_doubles.rb in rubocop-rspec-1.12.0 vs lib/rubocop/cop/rspec/verified_doubles.rb in rubocop-rspec-1.13.0

- old
+ new

@@ -23,13 +23,14 @@ def_node_matcher :unverified_double, <<-PATTERN {(send nil {:double :spy} $_ ...) } PATTERN def on_send(node) - return unless (name = unverified_double(node)) - return if name.type.equal?(:sym) && cop_config['IgnoreSymbolicNames'] + unverified_double(node) do |name| + return if name.sym_type? && cop_config['IgnoreSymbolicNames'] - add_offense(node, :expression) + add_offense(node, :expression) + end end end end end end