Skip to content

Commit 7ec7320

Browse files
authored
Add test to #85 - Make valid_header? handle MalformedCSVErrors (#89)
1 parent 48f00bb commit 7ec7320

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec/csv_importer_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,8 @@ class ImportUserCSVByFirstName
496496
497497
[email protected],false,,in,,,"""|
498498

499+
expect(ImportUserCSV.new(content: csv_content)).to_not be_valid_header
500+
499501
import = ImportUserCSV.new(content: csv_content).run!
500502

501503
expect(import).to_not be_success

0 commit comments

Comments
 (0)