update test to hook exist? rather than exists?
parent
57ab974737
commit
e75ce8b248
|
@ -311,7 +311,7 @@ RSpec.describe Md5LookupUtility do
|
||||||
let(:opts) { subject.parse(valid_argv) }
|
let(:opts) { subject.parse(valid_argv) }
|
||||||
|
|
||||||
before(:example) do
|
before(:example) do
|
||||||
allow(File).to receive(:exists?).and_return(true)
|
allow(File).to receive(:exist?).and_return(true)
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'returns the input file path' do
|
it 'returns the input file path' do
|
||||||
|
@ -330,7 +330,7 @@ RSpec.describe Md5LookupUtility do
|
||||||
|
|
||||||
context 'when the required input file is not set' do
|
context 'when the required input file is not set' do
|
||||||
before(:example) do
|
before(:example) do
|
||||||
allow(File).to receive(:exists?).and_return(false)
|
allow(File).to receive(:exist?).and_return(false)
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'raises an OptionParser::MissingArgument error' do
|
it 'raises an OptionParser::MissingArgument error' do
|
||||||
|
|
Loading…
Reference in New Issue