lib/rubocop/cop/rspec/verified_doubles.rb in rubocop-rspec-1.32.0 vs lib/rubocop/cop/rspec/verified_doubles.rb in rubocop-rspec-1.33.0

- old
+ new

@@ -21,11 +21,11 @@ # # good # let(:foo) do # instance_double("ClassName", method_name: 'returned value') # end class VerifiedDoubles < Cop - MSG = 'Prefer using verifying doubles over normal doubles.'.freeze + MSG = 'Prefer using verifying doubles over normal doubles.' def_node_matcher :unverified_double, <<-PATTERN {(send nil? {:double :spy} $...)} PATTERN @@ -39,10 +39,10 @@ end private def symbol?(name) - name && name.sym_type? + name&.sym_type? end end end end end