Attach A File With Capybara
<label for='data-file'>Data File</label>
<input type='file' name='data-file' />attach_file('data-file', 'path/to/file.csv')find('form input[type="file"]').set('path/to/file.csv')Last updated
<label for='data-file'>Data File</label>
<input type='file' name='data-file' />attach_file('data-file', 'path/to/file.csv')find('form input[type="file"]').set('path/to/file.csv')Last updated