From e75ce8b248f80d49954746696ed2c8cb0794f691 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Thu, 21 Apr 2016 06:56:48 -0400 Subject: [PATCH] update test to hook exist? rather than exists? --- spec/tools/md5_lookup_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/tools/md5_lookup_spec.rb b/spec/tools/md5_lookup_spec.rb index f9666d0a0d..889038b531 100644 --- a/spec/tools/md5_lookup_spec.rb +++ b/spec/tools/md5_lookup_spec.rb @@ -311,7 +311,7 @@ RSpec.describe Md5LookupUtility do let(:opts) { subject.parse(valid_argv) } before(:example) do - allow(File).to receive(:exists?).and_return(true) + allow(File).to receive(:exist?).and_return(true) end 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 before(:example) do - allow(File).to receive(:exists?).and_return(false) + allow(File).to receive(:exist?).and_return(false) end it 'raises an OptionParser::MissingArgument error' do