From 2af49064563a238baea79f68bfaec080c2bfd636 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Fri, 10 Feb 2017 08:00:43 +0100 Subject: [PATCH] Add test to ensure `Zap` does not have an `uninstall_phase`. --- .../cask/artifact/uninstall_no_zap_spec.rb | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Library/Homebrew/cask/spec/cask/artifact/uninstall_no_zap_spec.rb diff --git a/Library/Homebrew/cask/spec/cask/artifact/uninstall_no_zap_spec.rb b/Library/Homebrew/cask/spec/cask/artifact/uninstall_no_zap_spec.rb new file mode 100644 index 0000000000..3150b50bee --- /dev/null +++ b/Library/Homebrew/cask/spec/cask/artifact/uninstall_no_zap_spec.rb @@ -0,0 +1,21 @@ +require "spec_helper" + +describe Hbc::Artifact::Zap do + let(:cask) { Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/with-installable.rb") } + + let(:zap_artifact) { + Hbc::Artifact::Zap.new(cask) + } + + before do + shutup do + InstallHelper.install_without_artifacts(cask) + end + end + + describe "#uninstall_phase" do + subject { zap_artifact } + + it { is_expected.not_to respond_to(:uninstall_phase) } + end +end