lib/rubocop/cop/minitest/refute_false.rb in rubocop-minitest-0.13.0 vs lib/rubocop/cop/minitest/refute_false.rb in rubocop-minitest-0.14.0
- old
+ new
@@ -20,13 +20,11 @@
#
class RefuteFalse < Base
include ArgumentRangeHelper
extend AutoCorrector
- MSG_FOR_ASSERT_EQUAL = 'Prefer using `refute(%<arguments>s)` over ' \
- '`assert_equal(false, %<arguments>s)`.'
- MSG_FOR_ASSERT = 'Prefer using `refute(%<arguments>s)` over ' \
- '`assert(!%<arguments>s)`.'
+ MSG_FOR_ASSERT_EQUAL = 'Prefer using `refute(%<arguments>s)` over `assert_equal(false, %<arguments>s)`.'
+ MSG_FOR_ASSERT = 'Prefer using `refute(%<arguments>s)` over `assert(!%<arguments>s)`.'
RESTRICT_ON_SEND = %i[assert_equal assert].freeze
def_node_matcher :assert_equal_with_false, <<~PATTERN
(send nil? :assert_equal false $_ $...)
PATTERN