fixture_file_upload
is a good way to simulate an uploaded file in tests. In Rspec, make sure to include ActionDispatch::TestSupport
Useful Rspec custom matcher to write: with_layout(layout)
assign(:variable, 'value')
in your specs
Anonymous controllers in tests for testing filters
Testing nested hashes
Rspec output options
TODO: write a bash alias for running single spec file/line