mirror of
https://github.com/diaspora/diaspora.git
synced 2026-01-09 15:18:11 -05:00
Merge pull request #8437 from SuperTux88/fix-photo-export-spec
Ensure image processing gets disabled again, even after exceptions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user