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

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