spec/lib/mender_spec.rb in masticate-0.1.1 vs spec/lib/mender_spec.rb in masticate-0.1.3

- old
+ new

@@ -28,14 +28,15 @@ end it "should unfold inlined headers" do filename = File.dirname(__FILE__) + "/../data/inlined_headers.csv" tmp = Tempfile.new('mending') - results = Masticate.mend(filename, :inlined => true, :output => tmp) + results = Masticate.mend(filename, :col_sep => ',', :quote_char => '"', :inlined => true, :output => tmp) output = File.read(tmp) correct_output = File.read(File.dirname(__FILE__) + "/../data/inlined_headers.csv.output") results[:input_count].should == 11 results[:output_count].should == 11 + results[:field_counts].should == {11 => 11} output.should == correct_output end end