From da500eec6a9d95dbfbe5ba72978ecdece8bb8a12 Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Wed, 20 Jan 2016 01:49:18 +0100 Subject: [PATCH] tests: ExternalPatch test added --- Library/Homebrew/test/test_patch.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Library/Homebrew/test/test_patch.rb b/Library/Homebrew/test/test_patch.rb index 4aa1a16238..0d0033ee1f 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