aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2009-10-09 03:52:03 +0100
committerMax Howell2009-10-09 03:59:41 +0100
commit658947305a8a9311adb8460ed8523d48466718f3 (patch)
tree96ed18fc1a84ac0388632a11e5322c8c31ba738d /Library
parented60126225389279f86d5266f833cd31a1ae6753 (diff)
downloadhomebrew-658947305a8a9311adb8460ed8523d48466718f3.tar.bz2
I believe in a world where unittests work with Ruby 1.8.6
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Homebrew/unittest.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/Library/Homebrew/unittest.rb b/Library/Homebrew/unittest.rb
index f7b3ad2c7..b4fe731c9 100755
--- a/Library/Homebrew/unittest.rb
+++ b/Library/Homebrew/unittest.rb
@@ -135,7 +135,7 @@ module ExtendArgvPlusYeast
@named=nil
@formulae=nil
@kegs=nil
- while ARGV.count > 0
+ while ARGV.length > 0
ARGV.shift
end
end
@@ -473,10 +473,10 @@ class BeerTasting <Test::Unit::TestCase
def test_arch_for_command
arches=arch_for_command '/usr/bin/svn'
if `sw_vers -productVersion` =~ /10\.(\d+)/ and $1.to_i >= 6
- assert_equal 3, arches.count
+ assert_equal 3, arches.length
assert arches.include?(:x86_64)
else
- assert_equal 2, arches.count
+ assert_equal 2, arches.length
end
assert arches.include?(:i386)
assert arches.include?(:ppc7400)
@@ -630,7 +630,7 @@ end
__END__
update_git_pull_output_without_formulae_changes: |
- remote: Counting objects: 58, done.
+ remote: lengthing objects: 58, done.
remote: Compressing objects: 100% (35/35), done.
remote: Total 39 (delta 20), reused 0 (delta 0)
Unpacking objects: 100% (39/39), done.
@@ -650,7 +650,7 @@ update_git_pull_output_without_formulae_changes: |
delete mode 100644 Library/Homebrew/hw.model.c
delete mode 100644 Library/Homebrew/hw.model.rb
update_git_pull_output_with_formulae_changes: |
- remote: Counting objects: 58, done.
+ remote: lengthing objects: 58, done.
remote: Compressing objects: 100% (35/35), done.
remote: Total 39 (delta 20), reused 0 (delta 0)
Unpacking objects: 100% (39/39), done.