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