Sha256: 19170388723803a94af293ab58d75c21784639f163c726a693c854a5fcad40b2
Contents?: true
Size: 270 Bytes
Versions: 1
Compression:
Stored size: 270 Bytes
Contents
describe DataMapper::Adapters::Sql::Commands::SaveCommand do it "should create a new row" do Zoo.create({ :name => 'bob' }) end it "should update an existing row" do dallas = Zoo[:name => 'Dallas'] dallas.name = 'bob' dallas.save end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
datamapper-0.1.1 | spec/save_command_spec.rb |