tests: ExternalPatch test added

This commit is contained in:
Baptiste Fontaine 2016-01-20 01:49:18 +01:00
parent 343f431c46
commit da500eec6a

View File

@ -122,4 +122,9 @@ class ExternalPatchTests < Homebrew::TestCase
def test_inspect
assert_equal %(#<ExternalPatch: :p1 "file:///my.patch">), @p.inspect
end
def test_cached_download
@p.resource.stubs(:cached_download).returns "/tmp/foo.tar.gz"
assert_equal "/tmp/foo.tar.gz", @p.cached_download
end
end