Closed rajyan closed 1 year ago
I'm very confused with the results, but these test fails inconsistently...
I'm not sure yet with
Also, testing locally with counter_culture, I still could not upload an image like explained in https://github.com/carrierwaveuploader/carrierwave/issues/2700.
I'm very confused with the results, but these test fails inconsistently...
This was simply cause by test fixture setup... The first commit passes, because 'test.jpg' is uploaded by another test and the uploaded files isn't cleaned.
I would fix up them.
All problems are resolved. I believe this pull request now fixes https://github.com/carrierwaveuploader/carrierwave/issues/2700
@mshibuya
The last commit in
https://github.com/carrierwaveuploader/carrierwave/pull/2690
broke the @_mounters
cache, because the dup
is called after nil
is set.
Sorry that I couldn't catch it.
Looks great except for the tiny issue I commented!
This is my mistake as I didn't understand the invocation order of CarrierWave::Mount::Extension#initialize_dup
and CarrierWave::ActiveRecord
's #initialize_dup
correctly... 😓
Thank you so much!
dup should not prevent uploading
fixes https://github.com/carrierwaveuploader/carrierwave/issues/2700