Skip to content

Instantly share code, notes, and snippets.

@abacha
Last active December 15, 2015 03:48
Show Gist options
  • Select an option

  • Save abacha/5196663 to your computer and use it in GitHub Desktop.

Select an option

Save abacha/5196663 to your computer and use it in GitHub Desktop.
scenario "upload with errors", js: true do
filepath = "#{Rails.root}/spec/fixtures/transactions_with_errors.xls"
puts File.exists?(filepath) #true
attach_file "transactions_spreadsheet", filepath
click_on "Enviar"
save_and_open_page
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment