Sha256: 651892414c4c5f6a53017a77bd0cdb4c41415db13ef8ffc2748285cfaca04611

Contents?: true

Size: 432 Bytes

Versions: 33

Compression:

Stored size: 432 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

end

Version data entries

33 entries across 33 versions & 2 rubygems

Version Path
smarter_csv-1.6.1 spec/smarter_csv/chunked_reading_spec.rb
smarter_csv-1.6.0 spec/smarter_csv/chunked_reading_spec.rb
smarter_csv-1.5.2 spec/smarter_csv/chunked_reading_spec.rb
smarter_csv-1.5.1 spec/smarter_csv/chunked_reading_spec.rb
smarter_csv-1.5.0 spec/smarter_csv/chunked_reading_spec.rb
smarter_csv-1.4.2 spec/smarter_csv/chunked_reading_spec.rb
smarter_csv-1.4.0 spec/smarter_csv/chunked_reading_spec.rb
smarter_csv-1.3.0 spec/smarter_csv/chunked_reading_spec.rb
smarter_csv-1.2.8 spec/smarter_csv/chunked_reading_spec.rb
smarter_csv-1.2.7 spec/smarter_csv/chunked_reading_spec.rb
pokedex-terminal-0.2.8 vendor/bundle/ruby/2.7.0/gems/smarter_csv-1.2.6/spec/smarter_csv/chunked_reading_spec.rb
pokedex-terminal-0.2.7 vendor/bundle/ruby/2.7.0/gems/smarter_csv-1.2.6/spec/smarter_csv/chunked_reading_spec.rb
pokedex-terminal-0.2.6 vendor/bundle/ruby/2.7.0/gems/smarter_csv-1.2.6/spec/smarter_csv/chunked_reading_spec.rb
pokedex-terminal-0.2.5 vendor/bundle/ruby/2.7.0/gems/smarter_csv-1.2.6/spec/smarter_csv/chunked_reading_spec.rb
pokedex-terminal-0.2.4 vendor/bundle/ruby/2.7.0/gems/smarter_csv-1.2.6/spec/smarter_csv/chunked_reading_spec.rb
smarter_csv-1.2.6 spec/smarter_csv/chunked_reading_spec.rb
smarter_csv-1.2.5 spec/smarter_csv/chunked_reading_spec.rb
smarter_csv-1.2.4 spec/smarter_csv/chunked_reading_spec.rb
smarter_csv-1.2.3 spec/smarter_csv/chunked_reading_spec.rb
smarter_csv-1.2.0 spec/smarter_csv/chunked_reading_spec.rb