brew/Library/Homebrew/test/cask/artifact/uninstall_no_zap_spec.rb
Issy Long 3a83b5492c
rubocop: Clean up Style/BlockDelimiters excludes and autofix offenses
- The defaults of using "do ... end" for multi-line blocks everywhere is
  good, better than switching everything to braces everywhere.
2023-03-08 23:54:22 +00:00

21 lines
445 B
Ruby

# typed: false
# frozen_string_literal: true
describe Cask::Artifact::Zap, :cask do
let(:cask) { Cask::CaskLoader.load(cask_path("with-installable")) }
let(:zap_artifact) do
cask.artifacts.find { |a| a.is_a?(described_class) }
end
before do
InstallHelper.install_without_artifacts(cask)
end
describe "#uninstall_phase" do
subject { zap_artifact }
it { is_expected.not_to respond_to(:uninstall_phase) }
end
end