spec/tabfile_writer_spec.rb in optimus-ep-0.5.6 vs spec/tabfile_writer_spec.rb in optimus-ep-0.6.0

- old
+ new

@@ -86,6 +86,19 @@ it "should raise an error when specifying a nonexistent column" do @writer = Eprime::TabfileWriter.new(@eprime_data, @out_s, :columns => ['KITTEH']) lambda { @writer.write }.should raise_error(IndexError) end end + + describe "with column_labels set to false" do + before :each do + @writer = Eprime::TabfileWriter.new(@eprime_data, @out_s, {:column_labels => false}) + @writer.write + @out_s.rewind + end + + it "should not write a line with column labels" do + @out_s.readlines.size.should == @eprime_data.size + end + + end end \ No newline at end of file