diff --git a/Library/Homebrew/cask/cmd/--cache.rb b/Library/Homebrew/cask/cmd/--cache.rb index 54aebf6c98762d42dfb29d6628f04695ec4d409c..f674f59e598ea41ebdcad18e870a63653626df98 100644 --- a/Library/Homebrew/cask/cmd/--cache.rb +++ b/Library/Homebrew/cask/cmd/--cache.rb @@ -18,6 +18,9 @@ module Cask end def run + # TODO: enable for next major/minor release + # odeprecated "brew cask --cache", "brew --cache --cask" + casks.each do |cask| puts self.class.cached_location(cask) end diff --git a/Library/Homebrew/cask/cmd/home.rb b/Library/Homebrew/cask/cmd/home.rb index 7774ed6544239507d11fac8fefd5a9a1f7cbf2e0..690efd0145951249424a0803f1d20c574a571786 100644 --- a/Library/Homebrew/cask/cmd/home.rb +++ b/Library/Homebrew/cask/cmd/home.rb @@ -8,6 +8,7 @@ module Cask end def run + # TODO: enable for next major/minor release # odeprecated "brew cask home", "brew home" if casks.none? diff --git a/Library/Homebrew/test/cask/cmd/cache_spec.rb b/Library/Homebrew/test/cask/cmd/cache_spec.rb index c84f9ed3ac532bd07e17ae146e9de43f51234616..229edcc59895ae5289fa2ed0782217a79cf3b158 100644 --- a/Library/Homebrew/test/cask/cmd/cache_spec.rb +++ b/Library/Homebrew/test/cask/cmd/cache_spec.rb @@ -25,14 +25,9 @@ describe Cask::Cmd::Cache, :cask do cache: Cask::Cache.path, **local_caffeine.url.specs ).cached_location - expect do - described_class.run("local-transmission", "local-caffeine") - end.to output("#{transmission_location}\n#{caffeine_location}\n").to_stdout - end - - it "properly handles Casks that are not present" do - expect { - described_class.run("notacask") - }.to raise_error(Cask::CaskUnavailableError) + expect(described_class.cached_location(local_transmission)) + .to eql transmission_location + expect(described_class.cached_location(local_caffeine)) + .to eql caffeine_location end end