test/test_adapter.rb in shanna-dm-tokyo-cabinet-adapter-0.1.3 vs test/test_adapter.rb in shanna-dm-tokyo-cabinet-adapter-0.1.4
- old
+ new
@@ -37,9 +37,15 @@
should 'destroy item' do
assert @user.destroy
assert_equal 0, User.all.size
end
+
+ should 'update item' do
+ @user.name = 'Woot'
+ assert @user.save
+ assert_equal 'Woot', User.get(@user.id).name
+ end
end
context 'Compound key resource' do
setup do
class ::User