lib/rubocop/minitest/assert_offense.rb in rubocop-minitest-0.17.2 vs lib/rubocop/minitest/assert_offense.rb in rubocop-minitest-0.18.0
- old
+ new
@@ -20,11 +20,11 @@
#
# assert_offense(<<~RUBY)
# class FooTest < Minitest::Test
# def test_do_something
# assert_equal(nil, somestuff)
- # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Prefer using `assert_nil(somestuff)` over `assert_equal(nil, somestuff)`.
+ # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Prefer using `assert_nil(somestuff)`.
# end
# end
# RUBY
#
# Auto-correction can be tested using `assert_correction` after
@@ -34,11 +34,11 @@
#
# assert_offense(<<~RUBY)
# class FooTest < Minitest::Test
# def test_do_something
# assert_equal(nil, somestuff)
- # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Prefer using `assert_nil(somestuff)` over `assert_equal(nil, somestuff)`.
+ # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Prefer using `assert_nil(somestuff)`.
# end
# end
# RUBY
#
# assert_correction(<<~RUBY)
@@ -62,10 +62,10 @@
#
# assert_offense(<<~RUBY)
# class FooTest < Minitest::Test
# def test_do_something
# assert_equal(nil, somestuff)
- # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Prefer using `assert_nil(somestuff)` over `assert_equal(nil, somestuff)`.
+ # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Prefer using `assert_nil(somestuff)`.
# end
# end
# RUBY
#
# assert_no_corrections