aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorJack Nagel2014-07-16 18:12:27 -0500
committerJack Nagel2014-07-16 18:30:52 -0500
commit197dbe56011a656784e4c1dae734fabc3a3d512f (patch)
treecc9e9f854786089c3ee028b95fe779d7ea62f875 /Library/Homebrew/test
parent33eed80ccc0a6abf20060afa88fdb063ccbfc968 (diff)
downloadbrew-197dbe56011a656784e4c1dae734fabc3a3d512f.tar.bz2
Remove dead code
Formula objects are always constructed with an explicit name, so we no longer need to special case an empty name or the name "__UNKNOWN__".
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/test_download_strategies.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/Library/Homebrew/test/test_download_strategies.rb b/Library/Homebrew/test/test_download_strategies.rb
index 16ee28369..b228c563a 100644
--- a/Library/Homebrew/test/test_download_strategies.rb
+++ b/Library/Homebrew/test/test_download_strategies.rb
@@ -50,16 +50,6 @@ class VCSDownloadStrategyTests < Homebrew::TestCase
downloader = @strategy.new("baz", @resource)
assert_equal "baz--foo", downloader.cache_filename("foo")
end
-
- def test_empty_name
- downloader = @strategy.new("", @resource)
- assert_equal escaped("foo"), downloader.cache_filename("foo")
- end
-
- def test_unknown_name
- downloader = @strategy.new("__UNKNOWN__", @resource)
- assert_equal escaped("foo"), downloader.cache_filename("foo")
- end
end
class DownloadStrategyDetectorTests < Homebrew::TestCase