-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
CarrierWave in test does not delete file #2387
Comments
Could you tell me the last working version of CarrierWave? |
According our Gemfile that would have been |
Do you run tests with transactional fixtures? CarrierWave's file operation is supposed to be run in transactional manner. |
We don't run transactional fixtures. |
I've enabled transactional fixtures, but the test still fails :
|
Can you reproduce this problem using fresh Rails app? |
I can try setting this up when I find some free time for this... |
https://github.com/coding-bunny/carrierwave-test All required information is inside the project's README |
Thank you for fixing it :D |
minor side question : Will a separate release go out for this "soonish", we're trying to avoid pointing to master branch with gems. |
The fix will be included in upcoming release of 2.0.0, which I hope will be in June or so... |
This issue was fixed in 2.0.0 (f94b061) but remains in 1.3.2 and should probably be backported if there's a plan to continue support for the 1.x series. |
Hello,
I'm currently upgrading CarrierWave as part of our Rails upgrade process, and noticed a change in behavior when jumpin on the master branch to resolve all deprecation warnings for Rails.
We basically had a test, where we call
delete
on a File stored with CarrierWave, and this method returns true in our testing environment.Yet when we ask whether the file still exists, the method also returns true where this used to return false before.
Did something got changed in the way CarrierWave works in testing environments?
The test in question:
This is part of our S3 Uploader spec, and it worked fine in Rails 5.0 with CarrierWave 1.2
The text was updated successfully, but these errors were encountered: