We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00090dd commit fa5f1e2Copy full SHA for fa5f1e2
spec/octocatalog-diff/tests/util/util_spec.rb
@@ -102,5 +102,11 @@
102
expect(Dir).to receive(:mktmpdir).with('ocd-', '/var/tmp/asdfasdfasdf').and_return('/var/tmp/asdfasdfasdf/qwertyuiop')
103
expect(described_class.temp_dir).to eq('/var/tmp/asdfasdfasdf/qwertyuiop')
104
end
105
+
106
+ it 'should raise an error if OCTOCATALOG_DIFF_TEMPDIR is specified but does not exist' do
107
+ ENV['OCTOCATALOG_DIFF_TEMPDIR'] = '/var/tmp/asdfasdfasdf'
108
+ expect(File).to receive(:'directory?').with('/var/tmp/asdfasdfasdf').and_return(false)
109
+ expect { described_class.temp_dir }.to raise_error(Errno::ENOENT, /temp_dir: Base dir/)
110
+ end
111
112
0 commit comments