2017-03-05 19:26:56 +01:00
|
|
|
describe Hbc::Artifact::NestedContainer, :cask do
|
2016-08-18 22:11:42 +03:00
|
|
|
describe "install" do
|
|
|
|
it "extracts the specified paths as containers" do
|
2016-12-06 16:36:34 +01:00
|
|
|
cask = Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/nested-app.rb").tap do |c|
|
2017-02-08 14:28:18 +01:00
|
|
|
InstallHelper.install_without_artifacts(c)
|
2016-08-18 22:11:42 +03:00
|
|
|
end
|
|
|
|
|
|
|
|
shutup do
|
|
|
|
Hbc::Artifact::NestedContainer.new(cask).install_phase
|
|
|
|
end
|
|
|
|
|
2017-02-08 14:28:18 +01:00
|
|
|
expect(cask.staged_path.join("MyNestedApp.app")).to be_a_directory
|
2016-08-18 22:11:42 +03:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|