diff options
| author | Jack Nagel | 2014-06-19 21:35:46 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-06-20 21:32:36 -0500 |
| commit | 56c89c48b9a4b6cd57fd9b7bec2da11fc9faa24a (patch) | |
| tree | 0cb25626580ef6b4b48d484821e6b7f9f489b15c /Library/Homebrew/test/test_formula.rb | |
| parent | 7eb0d525ae1550163024a5dfa7b5b46dd3211049 (diff) | |
| download | homebrew-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.rb | 5 |
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 |
