Convert NestedContainer test to spec.
This commit is contained in:
parent
24d5059941
commit
3db8cdf861
@ -1,17 +1,17 @@
|
|||||||
require "test_helper"
|
require "spec_helper"
|
||||||
|
|
||||||
describe Hbc::Artifact::NestedContainer do
|
describe Hbc::Artifact::NestedContainer do
|
||||||
describe "install" do
|
describe "install" do
|
||||||
it "extracts the specified paths as containers" 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|
|
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
|
end
|
||||||
|
|
||||||
shutup do
|
shutup do
|
||||||
Hbc::Artifact::NestedContainer.new(cask).install_phase
|
Hbc::Artifact::NestedContainer.new(cask).install_phase
|
||||||
end
|
end
|
||||||
|
|
||||||
cask.staged_path.join("MyNestedApp.app").must_be :directory?
|
expect(cask.staged_path.join("MyNestedApp.app")).to be_a_directory
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
Loading…
x
Reference in New Issue
Block a user