Testing CSV File Uploads In Ruby
Testing the functionality of a CSV file uploader may seem to be simple and straightforward at first but as it turns out – not quite as explained in Ruby Quicktips. Say if you have a form for uploading CSV files like the one below: <%= form_tag csv_import_path, :multipart => true do %> <%= file_field_tag :file, [...]