diff options
Diffstat (limited to 'Library/Homebrew/test/test_formula.rb')
| -rw-r--r-- | Library/Homebrew/test/test_formula.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/test/test_formula.rb b/Library/Homebrew/test/test_formula.rb index 1d45de375..730c1e63b 100644 --- a/Library/Homebrew/test/test_formula.rb +++ b/Library/Homebrew/test/test_formula.rb @@ -148,7 +148,7 @@ class FormulaTests < Homebrew::TestCase end def test_formula_spec_integration - f = Class.new(Formula) do + f = formula do homepage 'http://example.com' url 'http://example.com/test-0.1.tbz' mirror 'http://example.org/test-0.1.tbz' @@ -161,7 +161,7 @@ class FormulaTests < Homebrew::TestCase mirror 'http://example.org/test-0.2.tbz' sha256 TEST_SHA256 end - end.new("test", Pathname.new(__FILE__).expand_path, :stable) + end assert_equal 'http://example.com', f.homepage assert_version_equal '0.1', f.version |
