diff options
| author | Markus Reiter | 2017-12-03 09:57:04 +0100 |
|---|---|---|
| committer | Markus Reiter | 2017-12-03 09:58:01 +0100 |
| commit | e4bb09dd402ad4b8e3b98d16fec9cfef9646b393 (patch) | |
| tree | f24962cfa87cea760e075ac150c85e50849a676c /Library/Homebrew/test | |
| parent | c1b85a6f9d9fd8d46afdcc9488c320d39fcb275d (diff) | |
| download | brew-e4bb09dd402ad4b8e3b98d16fec9cfef9646b393.tar.bz2 | |
Remove unused writer methods for `Hbc.caskroom` and `Hbc.cache`.
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/support/helper/spec/shared_context/homebrew_cask.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Homebrew/test/support/helper/spec/shared_context/homebrew_cask.rb b/Library/Homebrew/test/support/helper/spec/shared_context/homebrew_cask.rb index fc83149d0..35aacc263 100644 --- a/Library/Homebrew/test/support/helper/spec/shared_context/homebrew_cask.rb +++ b/Library/Homebrew/test/support/helper/spec/shared_context/homebrew_cask.rb @@ -8,8 +8,6 @@ require "test/support/helper/cask/never_sudo_system_command" HOMEBREW_CASK_DIRS = [ :appdir, - :caskroom, - :cache, :prefpanedir, :qlplugindir, :servicedir, @@ -20,6 +18,8 @@ RSpec.shared_context "Homebrew-Cask" do around(:each) do |example| third_party_tap = Tap.fetch("third-party", "tap") begin + [Hbc.caskroom, Hbc.cache].each(&:mkpath) + dirs = HOMEBREW_CASK_DIRS.map do |dir| Pathname.new(TEST_TMPDIR).join("cask-#{dir}").tap do |path| path.mkpath @@ -40,6 +40,7 @@ RSpec.shared_context "Homebrew-Cask" do example.run ensure FileUtils.rm_rf dirs + FileUtils.rm_rf Hbc.caskroom, Hbc.cache Hbc.default_tap.path.unlink FileUtils.rm_rf Hbc.default_tap.path.parent third_party_tap.path.unlink |
