Skip to content

Commit

Permalink
In testing fuzzily matching headings in CSV bulk upload files, check …
Browse files Browse the repository at this point in the history
…that the Yield count actually changes; don't rely solely on seeing the "success" message.
  • Loading branch information
gsrohde committed Mar 17, 2017
1 parent 3d5a609 commit 5531726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/features/bulk_upload_integration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
click_button 'Upload'
click_link 'Specify'
click_button 'Confirm'
click_button 'Insert Data'
expect { click_button 'Insert Data' }.to change { Yield.count }.by 1
expect(first("div.alert-success")).to have_content("Data from fuzzily_matching_headings.csv was successfully uploaded.")
end

Expand Down

0 comments on commit 5531726

Please sign in to comment.