Remove test with too much implementation knowledge

This commit is contained in:
Jack Nagel 2014-02-21 00:41:07 -05:00
parent 129e25032b
commit 662560e40d

View File

@ -136,19 +136,6 @@ class FormulaTests < Test::Unit::TestCase
assert_equal 'FooBar', Formula.class_s('foo_bar')
end
def test_mirror_support
f = Class.new(Formula) do
url "file:///#{TEST_FOLDER}/bad_url/testball-0.1.tbz"
mirror "file:///#{TEST_FOLDER}/tarballs/testball-0.1.tbz"
end.new("test_mirror_support")
shutup { f.fetch }
assert_equal "file:///#{TEST_FOLDER}/bad_url/testball-0.1.tbz", f.url
assert_equal "file:///#{TEST_FOLDER}/tarballs/testball-0.1.tbz",
f.downloader.instance_variable_get(:@url)
end
def test_formula_spec_integration
f = Class.new(Formula) do
homepage 'http://example.com'