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