aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib/hbc
diff options
context:
space:
mode:
authorMarkus Reiter2017-03-05 00:31:26 +0100
committerGitHub2017-03-05 00:31:26 +0100
commitf84ad9ca2ea0e86a2ba43c8b4b9cdffd0a707f5a (patch)
tree598f02608e173028d4f2f6b2c6e2950a343b6361 /Library/Homebrew/cask/lib/hbc
parent370c711da23fa0f7c7944f7d15928e44a67656a9 (diff)
parent80be26fd8b1c572d80d2c323eec9ce640726a8b0 (diff)
downloadbrew-f84ad9ca2ea0e86a2ba43c8b4b9cdffd0a707f5a.tar.bz2
Merge pull request #2256 from reitermarkus/spec-cask
Make Cask tests work without tapping `caskroom/cask`.
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc')
-rw-r--r--Library/Homebrew/cask/lib/hbc/locations.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/locations.rb b/Library/Homebrew/cask/lib/hbc/locations.rb
index 292b45d0c..4fb4a2191 100644
--- a/Library/Homebrew/cask/lib/hbc/locations.rb
+++ b/Library/Homebrew/cask/lib/hbc/locations.rb
@@ -15,6 +15,8 @@ module Hbc
@default_caskroom ||= HOMEBREW_PREFIX.join("Caskroom")
end
+ attr_writer :caskroom
+
def caskroom
@caskroom ||= begin
if Utils.path_occupied?(legacy_caskroom)
@@ -36,14 +38,12 @@ module Hbc
end
end
- def caskroom=(caskroom)
- @caskroom = caskroom
- end
-
def legacy_cache
@legacy_cache ||= HOMEBREW_CACHE.join("Casks")
end
+ attr_writer :cache
+
def cache
@cache ||= HOMEBREW_CACHE.join("Cask")
end