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

14 lines
434 B
Ruby
Raw Normal View History

require "test/support/helper/spec/shared_examples/hbc_dsl_base"
require "test/support/helper/spec/shared_examples/hbc_staged"
2016-08-18 22:11:42 +03:00
2017-03-05 19:26:56 +01:00
describe Hbc::DSL::Postflight, :cask do
let(:cask) { Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/basic-cask.rb") }
2016-08-18 22:11:42 +03:00
let(:dsl) { Hbc::DSL::Postflight.new(cask, Hbc::FakeSystemCommand) }
it_behaves_like Hbc::DSL::Base
it_behaves_like Hbc::Staged do
let(:staged) { dsl }
end
end