spec/lib/ki/orm_spec.rb in ki-0.4.9 vs spec/lib/ki/orm_spec.rb in ki-0.4.10
- old
+ new
@@ -79,9 +79,9 @@
end
it 'should delete by id' do
obj_id = @db.insert 'foo', { 'hello' => 'world' }
expect {
- @db.delete('foo', obj_id).should == {}
+ @db.delete('foo', obj_id).should == { deleted_item_count: 1 }
}.to change { @db.count 'foo' }.by(-1)
end
end