Sha256: e6970e2d6355a46daa0d8840ac308fbd6b94c6fb476934fca481c5943f0ab426
Contents?: true
Size: 402 Bytes
Versions: 3
Compression:
Stored size: 402 Bytes
Contents
require 'smart_csv' describe "Check class CSV::Row" do before(:each) do data = "id,firstname,lastname\n1,One,One\n2,Two,Two\n4,Four,Four\n5,Five,Five\n6,One,One" @data = CSV.parse(data, {:col_sep => ',', :headers => true}) end it "should correct updete record" do @data[2].update("lastname" => "Seven", "id" => "2012") @data.where("id" => "2012").size.should eql(1) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
smart_csv-0.0.6 | spec/csv/row/row_spec.rb |
smart_csv-0.0.5 | spec/csv/row/row_spec.rb |
smart_csv-0.0.2 | spec/csv/row/row_spec.rb |