add test case for csv BOM handling
This commit is contained in:
parent
c9921869f1
commit
6c1ebbb95c
|
@ -1 +1,5 @@
|
|||
jeff@gmail.com,discourse;ubuntu,100
sam@yahoo.com,ubuntu,
robin@outlook.com,discourse,200
neil@aol.com,random,
regis@live.com,,8888
|
||||
jeff@gmail.com,discourse;ubuntu,100
|
||||
sam@yahoo.com,ubuntu,
|
||||
robin@outlook.com,discourse,200
|
||||
neil@aol.com,random,
|
||||
regis@live.com,,8888
|
||||
|
|
|
|
@ -18,6 +18,7 @@ describe Jobs::BulkInvite do
|
|||
bulk_invite.current_user = user
|
||||
bulk_invite.read_csv_file(csv_file)
|
||||
expect(Invite.where(email: "robin@outlook.com").exists?).to eq(true)
|
||||
expect(Invite.where(email: "jeff@gmail.com").exists?).to eq(true) # handles BOM
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue