binary_spec: fix test
This commit is contained in:
parent
7aaa7f25ec
commit
5a74f1d971
@ -67,14 +67,16 @@ describe Cask::Artifact::Binary, :cask do
|
|||||||
expect(expected_path).not_to be :symlink?
|
expect(expected_path).not_to be :symlink?
|
||||||
end
|
end
|
||||||
|
|
||||||
it "clobbers an existing symlink" do
|
it "avoids clobbering an existing symlink" do
|
||||||
expected_path.make_symlink("/tmp")
|
expected_path.make_symlink("/tmp")
|
||||||
|
|
||||||
artifacts.each do |artifact|
|
expect {
|
||||||
artifact.install_phase(command: NeverSudoSystemCommand, force: false)
|
artifacts.each do |artifact|
|
||||||
end
|
artifact.install_phase(command: NeverSudoSystemCommand, force: false)
|
||||||
|
end
|
||||||
|
}.to raise_error(Cask::CaskError)
|
||||||
|
|
||||||
expect(File.readlink(expected_path)).not_to eq("/tmp")
|
expect(File.readlink(expected_path)).to eq("/tmp")
|
||||||
end
|
end
|
||||||
|
|
||||||
it "creates parent directory if it doesn't exist" do
|
it "creates parent directory if it doesn't exist" do
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user