Sha256: 67db6af7bb9bcb54a24075c2345cf902b8bbc58c8afe74ff1792a1f9240750af
Contents?: true
Size: 390 Bytes
Versions: 1
Compression:
Stored size: 390 Bytes
Contents
require 'spec_helper' describe 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
smart_csv-0.0.9 | spec/csv/row/row_spec.rb |