spec/esv_spec.rb in excel-esv-0.0.5 vs spec/esv_spec.rb in excel-esv-0.0.6
- old
+ new
@@ -35,11 +35,11 @@
book.write(fake_file)
data
end
end
-describe ESV, ".generate_file" do
+describe ESV, ".generate_file and .parse_file" do
before do
@file = Tempfile.new("esv")
end
it "works" do
@@ -48,11 +48,10 @@
ESV.generate_file(path) do |esv|
esv << [ "Dogs", "Cats" ]
esv << [ 1, 2 ]
end
- data = File.read(path)
- output = ESV.parse(data)
+ output = ESV.parse_file(path)
expect(output).to eq [
[ "Dogs", "Cats" ],
[ 1, 2 ],
]