Where should I store and verify files manipulated by an app
- by Alan W. Smith
I'm working on a little Ruby script to move screenshots while renaming them based on a specific convention. I'll be writing tests to confirm the behavior.
Ruby has lots of conventions for where to store files (e.g. the "spec" and "features" directories for RSpec and Cucumber, respectively), but I'm not finding best practices for storing files that will be acted upon by the tests. The same goes for a destination for the final copies of the files.
So, the question in two parts is:
Where should I store files that the test cases will use for a source input.
Where should tests that need to write output files send them to.