diff options
| author | Markus Reiter | 2017-12-03 19:35:51 +0100 |
|---|---|---|
| committer | GitHub | 2017-12-03 19:35:51 +0100 |
| commit | 0ad42ebbcb735422612a7c6d4edc5ad88044dd4b (patch) | |
| tree | f1930861c083793e42fe39fac091e07bb80d26a2 /Library/Homebrew/test/support | |
| parent | c37d4b85b75e90d7f550241f9f17c1bb252c3d88 (diff) | |
| parent | 9d1573c0405ead882a38d2bb70cfd66f76c06ccf (diff) | |
| download | brew-0ad42ebbcb735422612a7c6d4edc5ad88044dd4b.tar.bz2 | |
Merge pull request #3522 from reitermarkus/caskroom
Remove unused writer methods for `Hbc.caskroom` and `Hbc.cache`.
Diffstat (limited to 'Library/Homebrew/test/support')
| -rw-r--r-- | Library/Homebrew/test/support/helper/spec/shared_context/homebrew_cask.rb | 6 |
1 files changed, 3 insertions, 3 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..e1afc44bf 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,18 +8,17 @@ require "test/support/helper/cask/never_sudo_system_command" HOMEBREW_CASK_DIRS = [ :appdir, - :caskroom, - :cache, :prefpanedir, :qlplugindir, :servicedir, - :binarydir, ].freeze RSpec.shared_context "Homebrew-Cask" do around(:each) do |example| third_party_tap = Tap.fetch("third-party", "tap") begin + [Hbc.binarydir, 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 +39,7 @@ RSpec.shared_context "Homebrew-Cask" do example.run ensure FileUtils.rm_rf dirs + FileUtils.rm_rf [Hbc.binarydir, Hbc.caskroom, Hbc.cache] Hbc.default_tap.path.unlink FileUtils.rm_rf Hbc.default_tap.path.parent third_party_tap.path.unlink |
