lib/rubocop/cop/minitest/assert_empty.rb in rubocop-minitest-0.2.1 vs lib/rubocop/cop/minitest/assert_empty.rb in rubocop-minitest-0.3.0

- old
+ new

@@ -1,19 +1,20 @@ # frozen_string_literal: true module RuboCop module Cop module Minitest - # Check if your test uses `assert_empty` instead of `assert(actual.empty?)`. + # This cop enforces the test to use `assert_empty` + # instead of using `assert(object.empty?)`. # # @example # # bad - # assert(actual.empty?) - # assert(actual.empty?, 'the message') + # assert(object.empty?) + # assert(object.empty?, 'the message') # # # good - # assert_empty(actual) - # assert_empty(actual, 'the message') + # assert_empty(object) + # assert_empty(object, 'the message') # class AssertEmpty < Cop MSG = 'Prefer using `assert_empty(%<arguments>s)` over ' \ '`assert(%<receiver>s)`.'