aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorJack Nagel2014-07-16 23:19:58 -0500
committerJack Nagel2014-07-16 23:22:04 -0500
commit4295e76d3ff707ea8f7dd1af7b2907faa10fc61c (patch)
tree5c868954c77f0e9aed9a8be86c818e26ca6532f2 /Library/Homebrew/test
parent28f0e5c4fd146383686f6d552bcdcdd0c47e54aa (diff)
downloadbrew-4295e76d3ff707ea8f7dd1af7b2907faa10fc61c.tar.bz2
Remove more dead code
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/test_download_strategies.rb17
1 files changed, 5 insertions, 12 deletions
diff --git a/Library/Homebrew/test/test_download_strategies.rb b/Library/Homebrew/test/test_download_strategies.rb
index b228c563a..e7bc75e32 100644
--- a/Library/Homebrew/test/test_download_strategies.rb
+++ b/Library/Homebrew/test/test_download_strategies.rb
@@ -37,18 +37,11 @@ class AbstractDownloadStrategyTests < Homebrew::TestCase
end
class VCSDownloadStrategyTests < Homebrew::TestCase
- def setup
- @resource = ResourceDouble.new("http://example.com/bar")
- @strategy = VCSDownloadStrategy
- end
-
- def escaped(tag)
- "#{ERB::Util.url_encode(@resource.url)}--#{tag}"
- end
-
- def test_explicit_name
- downloader = @strategy.new("baz", @resource)
- assert_equal "baz--foo", downloader.cache_filename("foo")
+ def test_cache_filename
+ resource = ResourceDouble.new("http://example.com/bar")
+ strategy = Class.new(VCSDownloadStrategy) { def cache_tag; "foo"; end }
+ downloader = strategy.new("baz", resource)
+ assert_equal "baz--foo", downloader.cache_filename
end
end