aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_patch.rb5
1 files changed, 5 insertions, 0 deletions
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 %(#<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