brew/Library/Homebrew/test/cask/dsl/postflight_spec.rb

17 lines
457 B
Ruby
Raw Normal View History

# frozen_string_literal: true
require "test/cask/dsl/shared_examples/base"
require "test/cask/dsl/shared_examples/staged"
2016-08-18 22:11:42 +03:00
2018-09-06 08:29:14 +02:00
describe Cask::DSL::Postflight, :cask do
let(:cask) { Cask::CaskLoader.load(cask_path("basic-cask")) }
2020-11-23 02:05:50 +01:00
let(:fake_system_command) { class_double(SystemCommand) }
let(:dsl) { described_class.new(cask, fake_system_command) }
2016-08-18 22:11:42 +03:00
2018-09-06 08:29:14 +02:00
it_behaves_like Cask::DSL::Base
2016-08-18 22:11:42 +03:00
2018-09-06 08:29:14 +02:00
it_behaves_like Cask::Staged do
2016-08-18 22:11:42 +03:00
let(:staged) { dsl }
end
end