add the other test back in

This commit is contained in:
Bob W. Hogg 2016-09-22 17:36:57 -04:00
parent 57c2c560a1
commit 0029ad2929

View File

@ -76,6 +76,11 @@ class DependencyCollectorTests < Homebrew::TestCase
assert_predicate dep, :optional?
end
def test_ant_dep
@d.add :ant => :build
assert_equal find_dependency("ant"), Dependency.new("ant", [:build])
end
def test_raises_typeerror_for_unknown_classes
assert_raises(TypeError) { @d.add(Class.new) }
end