aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_formula.rb
diff options
context:
space:
mode:
authorJack Nagel2012-09-29 12:14:57 -0500
committerJack Nagel2012-09-29 12:14:57 -0500
commit1027093eae61228336981ef2cf45ca90088d2ed0 (patch)
tree6f0cedab2335988ce4b2486367a8e952e9070752 /Library/Homebrew/test/test_formula.rb
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>
Diffstat (limited to 'Library/Homebrew/test/test_formula.rb')
-rw-r--r--Library/Homebrew/test/test_formula.rb4
1 files changed, 2 insertions, 2 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