janko-m/paperclip-dropbox — pull request #7 by grantovich (2012-11-20 22:03:13+00:00)
Title: Ensure attachment cleanup after tests

In some tests, uploaded attachments would not be cleaned up if the test failed, causing the test to continue failing on subsequent runs with FileExists errors. This change fixes that, and de-duplicates some of the cleanup code.