Sha256: c4c0320b293a76e1f654b8a980863cdbd763e6fba572567d2c0fba318da6612d
Contents?: true
Size: 583 Bytes
Versions: 27
Compression:
Stored size: 583 Bytes
Contents
require 'spec_helper' fixture_path = 'spec/fixtures' describe 'be_able_to' do it 'not_downcase_headers' do options = {:keep_original_headers => true} data = SmarterCSV.process("#{fixture_path}/basic.csv", options) data.size.should == 5 # all the keys should be string data.each{|item| item.keys.each{|x| x.class.should be == String}} data.each do |item| item.keys.each do |key| ['First Name','Last Name','Dogs','Cats','Birds','Fish'].should include( key ) end end data.each do |h| h.size.should <= 6 end end end
Version data entries
27 entries across 27 versions & 2 rubygems