Merge pull request #8437 from SuperTux88/fix-photo-export-spec

Ensure image processing gets disabled again, even after exceptions
This commit is contained in:
Benjamin Neff 2023-11-13 02:32:52 +01:00
commit 389b1870d3
No known key found for this signature in database
GPG key ID: 971464C3F1A90194

View file

@ -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