Carrierwave + RSpec Test
I am testing that my file uploads are correct with models with RSpec by setting Model#filename = File.open(etc)
When my specs run, everything is great. But the files still remain in my public / uploads directory after testing is complete.
How do I get the files to be deleted at the end of the work along with the records?
Thank!
+3
source to share
2 answers