From ab1b32ebb0c3aba8d768b4c567538e9b780785a8 Mon Sep 17 00:00:00 2001 From: Randy Burkes Date: Wed, 31 Dec 2014 09:48:38 -0500 Subject: [PATCH] Remove an old test from merge. --- spec/lib/roo/excelx_spec.rb | 47 ------------------------------------- 1 file changed, 47 deletions(-) diff --git a/spec/lib/roo/excelx_spec.rb b/spec/lib/roo/excelx_spec.rb index 2ec93415..800d181f 100644 --- a/spec/lib/roo/excelx_spec.rb +++ b/spec/lib/roo/excelx_spec.rb @@ -360,51 +360,4 @@ end end end - - describe '.new with streaming' do - subject { - Roo::Excelx.new('test/files/numbers1withnull.xlsx', :minimal_load => true) - } - - it 'has pad_cell set to true by default' do - # last row should have two nil values - # on in the first col and one in the fourth col - - rows = [] - - subject.each_row_streaming do |row| - rows << row.map do |c| - # can't call .value on a padded value (it's nil) - c.value rescue nil - end - end - - # were padding empty cells (should be 2 total) - expect(rows.first[1]).to be_nil - expect(rows.first[3]).to be_nil - expect(rows.first[2]).not_to be_nil - - end - - it 'has pad_cell set to true by default' do - # last row should have two nil values - # on in the first col and one in the fourth col - - rows = [] - - subject.each_row_streaming(:pad_cells=>false) do |row| - rows << row.map do |c| - # can't call .value on a padded value (it's nil) - c.value rescue nil - end - end - - # we are not padding empty cells - expect(rows.first[1]).not_to be_nil - - end - - - end - end