Merge pull request #8437 from SuperTux88/fix-photo-export-spec
Ensure image processing gets disabled again, even after exceptions
This commit is contained in:
commit
389b1870d3
1 changed files with 2 additions and 2 deletions
|
|
@ -6,9 +6,9 @@
|
||||||
|
|
||||||
def with_carrierwave_processing(&block)
|
def with_carrierwave_processing(&block)
|
||||||
UnprocessedImage.enable_processing = true
|
UnprocessedImage.enable_processing = true
|
||||||
val = yield
|
yield
|
||||||
|
ensure
|
||||||
UnprocessedImage.enable_processing = false
|
UnprocessedImage.enable_processing = false
|
||||||
val
|
|
||||||
end
|
end
|
||||||
|
|
||||||
describe Photo, :type => :model do
|
describe Photo, :type => :model do
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue