brew/Library/Homebrew/test/cask/artifact/nested_container_spec.rb
2017-03-05 23:08:14 +01:00

16 lines
472 B
Ruby

describe Hbc::Artifact::NestedContainer, :cask do
describe "install" do
it "extracts the specified paths as containers" do
cask = Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/nested-app.rb").tap do |c|
InstallHelper.install_without_artifacts(c)
end
shutup do
Hbc::Artifact::NestedContainer.new(cask).install_phase
end
expect(cask.staged_path.join("MyNestedApp.app")).to be_a_directory
end
end
end