From 32c2a562cb61e700718cc6ca6302639e785146a1 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Fri, 9 Oct 2009 03:52:03 +0100 Subject: [PATCH] I believe in a world where unittests work with Ruby 1.8.6 --- Library/Homebrew/unittest.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Library/Homebrew/unittest.rb b/Library/Homebrew/unittest.rb index f7b3ad2c7f..b4fe731c9d 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 = 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.