diff options
| author | Jack Nagel | 2012-08-07 15:19:08 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-08-09 23:56:54 -0500 |
| commit | f5eaef0aeef134468f3681962d4bf2934ec015d3 (patch) | |
| tree | 3be1f424277c83fa6c675f07f43a8435c67a9f44 /Library/Homebrew/test/test_formula.rb | |
| parent | 2104510b63a6233a1fdac4b7c6b6c12a5285bbf7 (diff) | |
| download | brew-f5eaef0aeef134468f3681962d4bf2934ec015d3.tar.bz2 | |
Deprecate ancient formula syntax
Closes Homebrew/homebrew#13444.
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.rb | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/Library/Homebrew/test/test_formula.rb b/Library/Homebrew/test/test_formula.rb index 6161de275..686d8b0f0 100644 --- a/Library/Homebrew/test/test_formula.rb +++ b/Library/Homebrew/test/test_formula.rb @@ -6,8 +6,7 @@ class AbstractDownloadStrategy end class MostlyAbstractFormula < Formula - @url='' - @homepage = 'http://example.com/' + url '' end class FormulaTests < Test::Unit::TestCase @@ -132,35 +131,6 @@ class FormulaTests < Test::Unit::TestCase assert_equal 0, f.bottle.revision end - def test_ancient_formula_specs - f = AncientSpecTestBall.new - - assert_equal 'http://example.com', f.homepage - assert_equal 'file:///foo.com/testball-0.1.tbz', f.url - assert_equal '0.1', f.version - assert_equal f.stable, f.active_spec - assert_equal CurlDownloadStrategy, f.download_strategy - assert_instance_of CurlDownloadStrategy, f.downloader - - assert_instance_of SoftwareSpec, f.stable - assert_instance_of HeadSoftwareSpec, f.head - - assert_equal 'file:///foo.com/testball-0.1.tbz', f.stable.url - assert_equal 'https://github.com/mxcl/homebrew.git', f.head.url - - assert_nil f.stable.specs - assert_equal({ :tag => 'foo' }, f.head.specs) - - assert_instance_of Checksum, f.stable.checksum - assert_nil f.head.checksum - assert_equal :md5, f.stable.checksum.hash_type - assert_match /[0-9a-fA-F]{32}/, f.stable.checksum.hexdigest - - assert !f.stable.explicit_version? - assert_equal '0.1', f.stable.version - assert_equal 'HEAD', f.head.version - end - def test_devel_active_spec ARGV.push '--devel' f = SpecTestBall.new |
