mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 15:49:39 +02:00
Fix CSV import preview crash on empty values (#756)
This commit is contained in:
parent
1bbfdee463
commit
31ef3d85f5
3 changed files with 14 additions and 1 deletions
|
@ -14,6 +14,14 @@ module ImportTestHelper
|
|||
ROWS
|
||||
end
|
||||
|
||||
def valid_csv_with_extra_column
|
||||
<<-ROWS
|
||||
date,name,category,"optional id",amount
|
||||
2024-01-01,Starbucks drink,Food,1234,20
|
||||
2024-01-02,Amazon stuff,Shopping,,200
|
||||
ROWS
|
||||
end
|
||||
|
||||
def malformed_csv_str
|
||||
<<-ROWS
|
||||
name,age
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue