tests: show how CSVs can include newlines

Sanity check for #145
This commit is contained in:
Andy Meneely
2016-03-24 00:07:53 -04:00
parent bad52b7eb6
commit 38e3d669c5
2 changed files with 12 additions and 0 deletions
+9
View File
@@ -58,6 +58,15 @@ describe Squib::Deck do
})
end
it 'loads csv with newlines' do
hash = Squib.csv(file: csv_file('newline.csv'))
expect(hash).to eq({
'title' => ['Foo'],
'level' => [1],
'notes' => ["a\nb"]
})
end
end
context '#xlsx' do