Skip to content

Commit 2be4582

Browse files
authored
added spec to ensure error messages are present
1 parent 0071993 commit 2be4582

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/import_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ def upload_file!(name, ext = 'csv')
312312
upload_file!(:authors_invalid_model)
313313
expect(page).to have_content 'Failed to import 1 author'
314314
expect(page).to have_content 'Successfully imported 1 author'
315+
expect(page).to have_content 'Last name has already been taken - Doe'
315316
expect(Author.count).to eq(2)
316317
end
317318

0 commit comments

Comments
 (0)