Skip to content

Commit

Permalink
Change the expection error message to base error
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmed AlSum committed Aug 11, 2015
1 parent 5f68ed2 commit 61891d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/was/thumbnail_service/capture/capture_thumbnail_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
it 'should raise an error if the source file is not available' do
Rails.configuration.jp2_required = false
capture_thumbnail = CaptureThumbnail.new(1, 'aa111aa1111', '', '19991125000000')
expect{capture_thumbnail.save_to_stack}.to raise_error('No such file or directory - spec/fixtures//tmp_directory/19991125000000.jpeg')
expect{capture_thumbnail.save_to_stack}.to raise_error(Errno::ENOENT)
end
it 'should copy the thumbnail file from the temp location to the stacks location' do
Rails.configuration.jp2_required = true
Expand All @@ -145,7 +145,7 @@
it 'should raise an error if the source file is not available' do
Rails.configuration.jp2_required = true
capture_thumbnail = CaptureThumbnail.new(1, 'aa111aa1111', '', '19991125000000')
expect{capture_thumbnail.save_to_stack}.to raise_error('No such file or directory - spec/fixtures//tmp_directory/19991125000000.jp2')
expect{capture_thumbnail.save_to_stack}.to raise_error(Errno::ENOENT)
end
after :all do
if File.exists?("#{@fixtures}/image_stacks/aa/") then
Expand Down

0 comments on commit 61891d1

Please sign in to comment.