mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00

testing_env already requires utils; set up the ARGV and ENV extensions there as well. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
29 lines
735 B
Ruby
29 lines
735 B
Ruby
require 'testing_env'
|
|
|
|
class UtilTests < Test::Unit::TestCase
|
|
|
|
def test_put_columns_empty
|
|
assert_nothing_raised do
|
|
# Issue #217 put columns with new results fails.
|
|
puts_columns []
|
|
end
|
|
end
|
|
|
|
def test_arch_for_command
|
|
archs = archs_for_command '/usr/bin/svn'
|
|
if `sw_vers -productVersion` =~ /10\.(\d+)/ and $1.to_i >= 7
|
|
assert_equal 2, archs.length
|
|
assert archs.include?(:x86_64)
|
|
elsif `sw_vers -productVersion` =~ /10\.(\d+)/ and $1.to_i == 6
|
|
assert_equal 3, archs.length
|
|
assert archs.include?(:x86_64)
|
|
assert archs.include?(:ppc7400)
|
|
else
|
|
assert_equal 2, archs.length
|
|
assert archs.include?(:ppc7400)
|
|
end
|
|
assert archs.include?(:i386)
|
|
end
|
|
|
|
end
|