diff --git a/Library/Homebrew/test/test_patch.rb b/Library/Homebrew/test/test_patch.rb index 4aa1a1623..0d0033ee1 100644 --- a/Library/Homebrew/test/test_patch.rb +++ b/Library/Homebrew/test/test_patch.rb @@ -122,4 +122,9 @@ class ExternalPatchTests < Homebrew::TestCase def test_inspect assert_equal %(#), @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