Merge pull request #8022 from rolandwalker/spec_writes_outside_testdir

disable RSpec test which writes outside test directories
This commit is contained in:
Roland Walker 2014-12-12 09:16:20 -05:00
commit 244bf0d821
1 changed files with 10 additions and 8 deletions

View File

@ -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)