diff options
author | Jonne Haß <me@jhass.eu> | 2014-09-20 17:12:56 +0400 |
---|---|---|
committer | Jonne Haß <me@jhass.eu> | 2014-09-20 17:13:14 +0400 |
commit | d6f5368474240a394a5c952769480cad69093a89 (patch) | |
tree | 5fb6c564d0069863f77a18d423cbc8158ae54057 /spec/workers | |
parent | 499ff6e0f463d7fdd53119d76b1aa444f0ddd7c1 (diff) |
Handle already deleted photos gracefully in process photo job
Diffstat (limited to 'spec/workers')
-rw-r--r-- | spec/workers/process_photo_spec.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/workers/process_photo_spec.rb b/spec/workers/process_photo_spec.rb index 8294902ca..8e28fba74 100644 --- a/spec/workers/process_photo_spec.rb +++ b/spec/workers/process_photo_spec.rb @@ -61,6 +61,12 @@ describe Workers::ProcessPhoto do expect{ result = Workers::ProcessPhoto.new.perform(p.id) }.to_not raise_error - + + end + + it 'handles already deleted photos gracefully' do + expect { + Workers::ProcessPhoto.new.perform(0) + }.to_not raise_error end end |