diff --git a/Library/Homebrew/test/cmd/uninstall_spec.rb b/Library/Homebrew/test/cmd/uninstall_spec.rb index 9d0e5590d7..7edabe911e 100644 --- a/Library/Homebrew/test/cmd/uninstall_spec.rb +++ b/Library/Homebrew/test/cmd/uninstall_spec.rb @@ -17,15 +17,17 @@ describe "brew uninstall", :integration_test do .and not_to_output.to_stderr .and be_a_success end +end +describe "brew uninstall cask", :integration_test, :needs_macos do it "uninstalls a given Cask" do caffeine = Cask::CaskLoader.load(cask_path("local-caffeine")) Cask::Installer.new(caffeine).install expect { brew "uninstall", "local-caffeine" } .to output(/Uninstalling Cask local-caffeine/).to_stdout - .and not_to_output.to_stderr - .and be_a_success + .and not_to_output.to_stderr + .and be_a_success expect(caffeine).not_to be_installed @@ -43,8 +45,8 @@ describe "brew uninstall", :integration_test do Uninstalling\s#{TEST_TMPDIR}/cellar/testball/.*\n ==>\sUninstalling\sCask\slocal-caffeine }x).to_stdout - .and not_to_output.to_stderr - .and be_a_success + .and not_to_output.to_stderr + .and be_a_success expect(caffeine).not_to be_installed