File sandbox creates a space for your tests to safely hit the file system. It also makes it easier for them to do so. By cleaning up after them.
Jeremy Stell-Smith
gem "file_sandbox", "~> 0.6"