Cleaning up test files for Paperclipped models

In my tests that use Paperclip some require that a file is provided, the
problem is that in the test, when the object gets saved to DB, the
associated file gets saved to disk and clutters my folders.

So what’s the solution for that? The problem is the has_attached_file
method.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs