diff options
| author | Baptiste Fontaine | 2016-01-20 01:49:18 +0100 |
|---|---|---|
| committer | Baptiste Fontaine | 2016-01-20 20:15:34 +0100 |
| commit | da500eec6a9d95dbfbe5ba72978ecdece8bb8a12 (patch) | |
| tree | 119e7c5e2796e02983c0f61316b2d9d8c80d97f3 /Library/Homebrew/test/test_patch.rb | |
| parent | 343f431c4663a1cfbb5dbb25983593fafc24df55 (diff) | |
| download | brew-da500eec6a9d95dbfbe5ba72978ecdece8bb8a12.tar.bz2 | |
tests: ExternalPatch test added
Diffstat (limited to 'Library/Homebrew/test/test_patch.rb')
| -rw-r--r-- | Library/Homebrew/test/test_patch.rb | 5 |
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 |
