aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_formula.rb
diff options
context:
space:
mode:
authorJack Nagel2014-06-19 21:35:46 -0500
committerJack Nagel2014-06-20 21:32:36 -0500
commit56c89c48b9a4b6cd57fd9b7bec2da11fc9faa24a (patch)
tree0cb25626580ef6b4b48d484821e6b7f9f489b15c /Library/Homebrew/test/test_formula.rb
parent7eb0d525ae1550163024a5dfa7b5b46dd3211049 (diff)
downloadhomebrew-56c89c48b9a4b6cd57fd9b7bec2da11fc9faa24a.tar.bz2
Pass the requested spec into the formula instance
Diffstat (limited to 'Library/Homebrew/test/test_formula.rb')
-rw-r--r--Library/Homebrew/test/test_formula.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Homebrew/test/test_formula.rb b/Library/Homebrew/test/test_formula.rb
index aba8ef377..c4a9c1587 100644
--- a/Library/Homebrew/test/test_formula.rb
+++ b/Library/Homebrew/test/test_formula.rb
@@ -6,8 +6,9 @@ class FormulaTests < Homebrew::TestCase
klass = Class.new(Formula) { url "http://example.com/foo-1.0.tar.gz" }
name = "formula_name"
path = Formula.path(name)
+ spec = :stable
- f = klass.new(name, path)
+ f = klass.new(name, path, spec)
assert_equal name, f.name
assert_equal path, f.path
assert_raises(ArgumentError) { klass.new }
@@ -168,7 +169,7 @@ class FormulaTests < Homebrew::TestCase
bottle { sha1 TEST_SHA1 => bottle_tag }
def initialize
- super "test", Pathname.new(__FILE__).expand_path
+ super "test", Pathname.new(__FILE__).expand_path, :stable
end
end.new