diff --git a/docs/modules/ROOT/pages/cops_minitest.adoc b/docs/modules/ROOT/pages/cops_minitest.adoc index 4fd66537..0ca6c4ac 100644 --- a/docs/modules/ROOT/pages/cops_minitest.adoc +++ b/docs/modules/ROOT/pages/cops_minitest.adoc @@ -458,7 +458,9 @@ assert(actual, 'message') This cop tries to detect when a user accidentally used `assert` when they meant to use `assert_equal`. -It is marked as unsafe because it is not possible to determine +=== Safety + +This cop is unsafe because it is not possible to determine whether the second argument of `assert` is a message or not. === Examples diff --git a/lib/rubocop/cop/minitest/assert_with_expected_argument.rb b/lib/rubocop/cop/minitest/assert_with_expected_argument.rb index ff45a2ae..55dbd1cc 100644 --- a/lib/rubocop/cop/minitest/assert_with_expected_argument.rb +++ b/lib/rubocop/cop/minitest/assert_with_expected_argument.rb @@ -6,8 +6,9 @@ module Minitest # This cop tries to detect when a user accidentally used # `assert` when they meant to use `assert_equal`. # - # It is marked as unsafe because it is not possible to determine - # whether the second argument of `assert` is a message or not. + # @safety + # This cop is unsafe because it is not possible to determine + # whether the second argument of `assert` is a message or not. # # @example # # bad