csv: data option

Close #137
This commit is contained in:
Andy Meneely
2016-03-15 17:45:39 -04:00
parent e51b99af85
commit f408b7a88f
5 changed files with 25 additions and 3 deletions
+8
View File
@@ -50,6 +50,14 @@ describe Squib::Deck do
})
end
it 'loads inline data' do
hash = Squib.csv(data: "h1,h2\n1,2\n3,4")
expect(hash).to eq({
'h1' => [1, 3],
'h2' => [2, 4]
})
end
end
context '#xlsx' do