Merge pull request #8022 from rolandwalker/spec_writes_outside_testdir
disable RSpec test which writes outside test directories
This commit is contained in:
commit
244bf0d821
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue