aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/cask/dsl/uninstall_preflight_spec.rb
blob: 8e7fa47eb4dbe06eff2fe3ec1139247195a3d15f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
require "test/support/helper/spec/shared_examples/hbc_dsl_base"
require "test/support/helper/spec/shared_examples/hbc_staged"

describe Hbc::DSL::UninstallPreflight, :cask do
  let(:cask) { Hbc::CaskLoader.load(cask_path("basic-cask")) }
  let(:dsl) { Hbc::DSL::UninstallPreflight.new(cask, Hbc::FakeSystemCommand) }

  it_behaves_like Hbc::DSL::Base

  it_behaves_like Hbc::Staged do
    let(:staged) { dsl }
  end
end