brew/Library/Homebrew/test/cask/artifact/uninstall_no_zap_spec.rb

20 lines
430 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2018-09-06 08:29:14 +02:00
describe Cask::Artifact::Zap, :cask do
let(:cask) { Cask::CaskLoader.load(cask_path("with-installable")) }
let(:zap_artifact) do
2017-10-04 17:54:52 +02:00
cask.artifacts.find { |a| a.is_a?(described_class) }
end
before do
2017-07-29 19:55:05 +02:00
InstallHelper.install_without_artifacts(cask)
end
describe "#uninstall_phase" do
subject { zap_artifact }
it { is_expected.not_to respond_to(:uninstall_phase) }
end
end