spec/dynamoid/persistence_spec.rb in dynamoid-0.1.0 vs spec/dynamoid/persistence_spec.rb in dynamoid-0.1.1
- old
+ new
@@ -49,7 +49,14 @@
@user = User.new(:name => 'Josh')
@user.expects(:save_indexes).once.returns(true)
@user.save
end
+
+ it 'deletes an item completely' do
+ @user = User.create(:name => 'Josh')
+ @user.destroy
+
+ Dynamoid::Adapter.get_item("dynamoid_tests_users", @user.id).should be_nil
+ end
end