Sha256: 84e181e55c27dedcd32f4bf2a7368c99605244658cb0a661460c763f00cefe62

Contents?: true

Size: 418 Bytes

Versions: 1

Compression:

Stored size: 418 Bytes

Contents

require 'spec_helper'

fixture_path = 'spec/fixtures'

describe 'be_able_to' do
  it 'loads_chunk_cornercase_csv_files' do 
    (0..5).each do |chunk_size|    # test for all chunk-sizes
    options = {:chunk_size => chunk_size, :remove_empty_hashes => true}
    data = SmarterCSV.process("#{fixture_path}/chunk_cornercase.csv", options)
    data.flatten.size.should == 5  # end-result must always be 5 rows
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
smarter_csv-1.0.11 spec/smarter_csv/chunked_reading.rb