aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorJack Nagel2013-10-11 00:11:58 -0500
committerJack Nagel2013-10-11 00:21:23 -0500
commited7f8faed2080260bb7308c7f7985003504e98e7 (patch)
tree2d4b140f2b7e5f7c95111f31929b7c956672f119 /Library/Homebrew/test
parentdd719e7ca62cb52d749614f1fde663bf1ac1bf14 (diff)
downloadbrew-ed7f8faed2080260bb7308c7f7985003504e98e7.tar.bz2
VCSDownloadStrategy: rename checkout_name to cache_filename
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/test_download_strategies.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/test/test_download_strategies.rb b/Library/Homebrew/test/test_download_strategies.rb
index e836125f3..6ecfb54f7 100644
--- a/Library/Homebrew/test/test_download_strategies.rb
+++ b/Library/Homebrew/test/test_download_strategies.rb
@@ -37,7 +37,7 @@ class AbstractDownloadStrategyTests < Test::Unit::TestCase
end
end
-class DownloadStrategyCheckoutNameTests < Test::Unit::TestCase
+class VCSDownloadStrategyTests < Test::Unit::TestCase
def setup
@resource = ResourceDouble.new("http://foo.com/bar")
@strategy = VCSDownloadStrategy
@@ -49,17 +49,17 @@ class DownloadStrategyCheckoutNameTests < Test::Unit::TestCase
def test_explicit_name
downloader = @strategy.new("baz", @resource)
- assert_equal "baz--foo", downloader.checkout_name("foo")
+ assert_equal "baz--foo", downloader.cache_filename("foo")
end
def test_empty_name
downloader = @strategy.new("", @resource)
- assert_equal escaped("foo"), downloader.checkout_name("foo")
+ assert_equal escaped("foo"), downloader.cache_filename("foo")
end
def test_unknown_name
downloader = @strategy.new("__UNKNOWN__", @resource)
- assert_equal escaped("foo"), downloader.checkout_name("foo")
+ assert_equal escaped("foo"), downloader.cache_filename("foo")
end
end