Skip to content
Snippets Groups Projects
Commit 3db8cdf8 authored by Markus Reiter's avatar Markus Reiter
Browse files

Convert NestedContainer test to spec.

parent 24d50599
No related branches found
No related tags found
No related merge requests found
require "test_helper"
require "spec_helper"
describe Hbc::Artifact::NestedContainer 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|
TestHelper.install_without_artifacts(c)
InstallHelper.install_without_artifacts(c)
end
shutup do
Hbc::Artifact::NestedContainer.new(cask).install_phase
end
cask.staged_path.join("MyNestedApp.app").must_be :directory?
expect(cask.staged_path.join("MyNestedApp.app")).to be_a_directory
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment