Use assert_empty
This commit is contained in:
parent
93d8e71641
commit
ddc615366c
@ -50,7 +50,7 @@ class ArgvExtensionTests < Test::Unit::TestCase
|
||||
|
||||
def test_filter_for_dependencies_clears_flags
|
||||
@argv << "--HEAD" << "--devel"
|
||||
@argv.filter_for_dependencies { assert @argv.empty? }
|
||||
@argv.filter_for_dependencies { assert_empty @argv }
|
||||
end
|
||||
|
||||
def test_filter_for_dependencies_ensures_argv_restored
|
||||
|
||||
@ -13,7 +13,7 @@ class CompilerQueueTests < Test::Unit::TestCase
|
||||
end
|
||||
|
||||
def test_empty
|
||||
assert @q.empty?
|
||||
assert_empty @q
|
||||
end
|
||||
|
||||
def test_queues_items
|
||||
|
||||
@ -62,15 +62,15 @@ class UpdaterTests < Test::Unit::TestCase
|
||||
def test_update_homebrew_without_any_changes
|
||||
perform_update
|
||||
assert @updater.expectations_met?
|
||||
assert @report.empty?
|
||||
assert_empty @report
|
||||
end
|
||||
|
||||
def test_update_homebrew_without_formulae_changes
|
||||
perform_update(fixture('update_git_diff_output_without_formulae_changes'))
|
||||
assert @updater.expectations_met?
|
||||
assert @report.select_formula(:M).empty?
|
||||
assert @report.select_formula(:A).empty?
|
||||
assert @report.select_formula(:R).empty?
|
||||
assert_empty @report.select_formula(:M)
|
||||
assert_empty @report.select_formula(:A)
|
||||
assert_empty @report.select_formula(:R)
|
||||
end
|
||||
|
||||
def test_update_homebrew_with_formulae_changes
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user