Below is my testing code for uploading file.
describe \"file process\" do before(:each) do # debugger @file = fixture_file_upload(\'test.csv\', \'text/csv
Based on the most voted answer on this question, you have to put the file under {Rails.root}/spec/fixtures/files