lib/rubocop/cop/rspec/verified_doubles.rb in rubocop-rspec-2.2.0 vs lib/rubocop/cop/rspec/verified_doubles.rb in rubocop-rspec-2.3.0
- old
+ new
@@ -24,9 +24,10 @@
# end
class VerifiedDoubles < Base
MSG = 'Prefer using verifying doubles over normal doubles.'
RESTRICT_ON_SEND = %i[double spy].freeze
+ # @!method unverified_double(node)
def_node_matcher :unverified_double, <<-PATTERN
{(send nil? {:double :spy} $...)}
PATTERN
def on_send(node)