aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2012-09-29 12:14:57 -0500
committerJack Nagel2012-09-29 12:14:57 -0500
commit1027093eae61228336981ef2cf45ca90088d2ed0 (patch)
tree6f0cedab2335988ce4b2486367a8e952e9070752
parent64927a45ef62f8dc0b86a46ac38c91954494bb8f (diff)
downloadbrew-1027093eae61228336981ef2cf45ca90088d2ed0.tar.bz2
tests: set newly-visible global constants
The changes to error ouput and logging require a few more things to be visible during installation tests. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
-rw-r--r--Library/Homebrew/test/test_formula.rb4
-rw-r--r--Library/Homebrew/test/testing_env.rb7
2 files changed, 8 insertions, 3 deletions
diff --git a/Library/Homebrew/test/test_formula.rb b/Library/Homebrew/test/test_formula.rb
index 5c6b78772..456c81937 100644
--- a/Library/Homebrew/test/test_formula.rb
+++ b/Library/Homebrew/test/test_formula.rb
@@ -171,14 +171,14 @@ class FormulaTests < Test::Unit::TestCase
assert_instance_of Bottle, f.bottle
assert_equal CurlBottleDownloadStrategy, f.bottle.download_strategy
assert_nil f.bottle.specs
- assert_nil f.bottle.mirrors
+ assert f.bottle.mirrors.empty?
assert_equal 'file:///foo.com/testball-0.1-bottle.tar.gz', f.bottle.url
assert_instance_of Checksum, f.bottle.checksum
assert_equal :sha1, f.bottle.checksum.hash_type
assert !f.bottle.checksum.empty?
- assert_equal 'baadf00dbaadf00dbaadf00dbaadf00dbaadf00d', f.bottle.sha1.hexdigest
+ assert_equal 'deadbeefdeadbeefdeadbeefdeadbeefdeadbeef', f.bottle.sha1.hexdigest
assert_nil f.bottle.md5
assert_nil f.bottle.sha256
diff --git a/Library/Homebrew/test/testing_env.rb b/Library/Homebrew/test/testing_env.rb
index a93fe6872..a35ad3f49 100644
--- a/Library/Homebrew/test/testing_env.rb
+++ b/Library/Homebrew/test/testing_env.rb
@@ -20,10 +20,15 @@ HOMEBREW_REPOSITORY=HOMEBREW_PREFIX
HOMEBREW_CACHE=HOMEBREW_PREFIX.parent+"cache"
HOMEBREW_CACHE_FORMULA=HOMEBREW_PREFIX.parent+"formula_cache"
HOMEBREW_CELLAR=HOMEBREW_PREFIX.parent+"cellar"
+HOMEBREW_LOGS = HOMEBREW_PREFIX.parent+"logs"
HOMEBREW_USER_AGENT="Homebrew"
HOMEBREW_WWW='http://example.com'
HOMEBREW_CURL_ARGS = '-fsLA'
-MACOS_VERSION=10.6
+HOMEBREW_VERSION = '0.9-test'
+
+MACOS = true
+MACOS_VERSION = 10.6
+MACOS_FULL_VERSION = '10.6.8'
(HOMEBREW_PREFIX+'Library/Formula').mkpath