mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 13:19: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
|
@ -36,6 +36,11 @@ class Import::CsvTest < ActiveSupport::TestCase
|
|||
assert_not invalid_csv.valid?
|
||||
end
|
||||
|
||||
test "csv with additional columns and empty values" do
|
||||
csv = Import::Csv.new valid_csv_with_extra_column
|
||||
assert csv.valid?
|
||||
end
|
||||
|
||||
test "updating a cell returns a copy of the original csv" do
|
||||
original_date = "2024-01-01"
|
||||
new_date = "2024-01-01"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue