1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-23 15:19:38 +02:00

Fix duplicate category creation on import (#791)

* Repro

* Fix

* Update signage
This commit is contained in:
Zach Gollwitzer 2024-05-22 10:02:03 -04:00 committed by GitHub
parent 77f166a5f8
commit 41c991384a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 24 additions and 12 deletions

View file

@ -2,8 +2,9 @@ module ImportTestHelper
def valid_csv_str
<<-ROWS
date,name,category,amount
2024-01-01,Starbucks drink,Food,20
2024-01-02,Amazon stuff,Shopping,200
2024-01-01,Starbucks drink,Food,-20
2024-01-02,Amazon stuff,Shopping,-200
2024-01-03,Paycheck,Income,1000
ROWS
end
@ -17,8 +18,8 @@ module ImportTestHelper
def valid_csv_with_missing_data
<<-ROWS
date,name,category,"optional id",amount
2024-01-01,Drink,Food,1234,200
2024-01-02,,,,100
2024-01-01,Drink,Food,1234,-200
2024-01-02,,,,-100
ROWS
end