aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_ARGV.rb2
-rw-r--r--Library/Homebrew/test/test_compiler_queue.rb2
-rw-r--r--Library/Homebrew/test/test_updater.rb8
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