Skip to content

Commit

Permalink
Merge pull request #8437 from SuperTux88/fix-photo-export-spec
Browse files Browse the repository at this point in the history
Ensure image processing gets disabled again, even after exceptions
  • Loading branch information
SuperTux88 committed Nov 13, 2023
2 parents 42ffd63 + 4f798fc commit 389b187
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/models/photo_spec.rb
Expand Up @@ -6,9 +6,9 @@

def with_carrierwave_processing(&block)
UnprocessedImage.enable_processing = true
val = yield
yield
ensure
UnprocessedImage.enable_processing = false
val
end

describe Photo, :type => :model do
Expand Down

0 comments on commit 389b187

Please sign in to comment.