Skip to content

Commit

Permalink
update test to hook exist? rather than exists?
Browse files Browse the repository at this point in the history
  • Loading branch information
Brent Cook committed Apr 21, 2016
1 parent 57ab974 commit e75ce8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/tools/md5_lookup_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def stub_load(with_setting=true)
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
Expand All @@ -330,7 +330,7 @@ def stub_load(with_setting=true)

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
Expand Down

0 comments on commit e75ce8b

Please sign in to comment.