Skip to content

Commit

Permalink
Test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mkarlesky committed Dec 28, 2023
1 parent 5a7e138 commit 03aa607
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/file_finder_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@
end

it 'outputs a complaint if complain is warn' do
msg = 'WARNING: Found no file \'d.c\' in search paths.'
msg = 'WARNING: Found no file d.c in search paths.'
expect(@streaminator).to receive(:stderr_puts).with(msg, Verbosity::COMPLAIN)
@ff_helper.find_file_in_collection('d.c', FILE_LIST, :warn)
end

it 'outputs and raises an error if complain is error' do
msg = 'ERROR: Found no file \'d.c\' in search paths.'
msg = 'ERROR: Found no file d.c in search paths.'
allow(@streaminator).to receive(:stderr_puts).with(msg, Verbosity::ERRORS) do
expect{@ff_helper.find_file_in_collection('d.c', FILE_LIST, :warn)}.to raise_error
end
Expand Down

0 comments on commit 03aa607

Please sign in to comment.