diff options
| author | Jack Nagel | 2014-06-11 12:22:29 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-06-11 12:22:29 -0500 |
| commit | 4732bd601ed5ba31cd699c9cdce503fc440a7ac6 (patch) | |
| tree | 78b76fc2fe49354e815957511c3b06834c8a847b /Library/Homebrew | |
| parent | 77ee6d10d2d76b7a24887d5d3f81f96eb160229d (diff) | |
| download | homebrew-4732bd601ed5ba31cd699c9cdce503fc440a7ac6.tar.bz2 | |
Use assert_empty
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/test/test_ARGV.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/test/test_compiler_queue.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/test/test_updater.rb | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/Library/Homebrew/test/test_ARGV.rb b/Library/Homebrew/test/test_ARGV.rb index 2a29dadf7..4a112210b 100644 --- a/Library/Homebrew/test/test_ARGV.rb +++ b/Library/Homebrew/test/test_ARGV.rb @@ -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 diff --git a/Library/Homebrew/test/test_compiler_queue.rb b/Library/Homebrew/test/test_compiler_queue.rb index 6dee1ab37..9f108ce75 100644 --- a/Library/Homebrew/test/test_compiler_queue.rb +++ b/Library/Homebrew/test/test_compiler_queue.rb @@ -13,7 +13,7 @@ class CompilerQueueTests < Test::Unit::TestCase end def test_empty - assert @q.empty? + assert_empty @q end def test_queues_items diff --git a/Library/Homebrew/test/test_updater.rb b/Library/Homebrew/test/test_updater.rb index 9fb2b54df..1b6b85aaf 100644 --- a/Library/Homebrew/test/test_updater.rb +++ b/Library/Homebrew/test/test_updater.rb @@ -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 |
