From 6f759e07ae08e464ab24ff8cc8126cead046554d Mon Sep 17 00:00:00 2001 From: Roland Walker Date: Thu, 11 Dec 2014 10:49:45 -0500 Subject: [PATCH] disable test which writes outside test dir invoking Cask.init attempts to actually `mkdir /custom/caskdir` --- spec/cask/cli_spec.rb | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/spec/cask/cli_spec.rb b/spec/cask/cli_spec.rb index c7076d9e0a6..703046fbf04 100644 --- a/spec/cask/cli_spec.rb +++ b/spec/cask/cli_spec.rb @@ -31,14 +31,16 @@ describe Cask::CLI do end end - it "respects the ENV variable when choosing a non-default Caskroom location" do - with_env_var 'HOMEBREW_CASK_OPTS', "--caskroom=/custom/caskdir" do - allow(Cask).to receive(:init) { - expect(Cask.caskroom.to_s).to eq('/custom/caskdir') - } - Cask::CLI.process('noop') - end - end + # todo: merely invoking init causes an attempt to create the caskroom directory + # + # it "respects the ENV variable when choosing a non-default Caskroom location" do + # with_env_var 'HOMEBREW_CASK_OPTS', "--caskroom=/custom/caskdir" do + # allow(Cask).to receive(:init) { + # expect(Cask.caskroom.to_s).to eq('/custom/caskdir') + # } + # Cask::CLI.process('noop') + # end + # end it "exits with a status of 1 when something goes wrong" do Cask::CLI.expects(:exit).with(1)