lib/rubocop/cop/minitest/refute_nil.rb in rubocop-minitest-0.2.1 vs lib/rubocop/cop/minitest/refute_nil.rb in rubocop-minitest-0.3.0
- old
+ new
@@ -1,10 +1,11 @@
# frozen_string_literal: true
module RuboCop
module Cop
module Minitest
- # Check if your test uses `refute_nil` instead of `refute_equal(nil, something)`.
+ # This cop enforces the test to use `refute_nil`
+ # instead of using `refute_equal(nil, something)`.
#
# @example
# # bad
# refute_equal(nil, actual)
# refute_equal(nil, actual, 'the message')