I believe in a world where unittests work with Ruby 1.8.6

This commit is contained in:
Max Howell 2009-10-09 03:52:03 +01:00
parent e948859128
commit 32c2a562cb

View File

@ -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.