spec/jason_object_spec.rb in medea-0.3.0 vs spec/jason_object_spec.rb in medea-0.3.1
- old
+ new
@@ -40,6 +40,16 @@
retrieved_user = User.get_by_key @user.jason_key, :lazy
retrieved_user.jason_state.should eq(:ghost)
retrieved_user.name
retrieved_user.jason_state.should eq(:stale)
end
+
+ it "should not load deleted objects" do
+ u = User.new
+ u.name = "Michael"
+ u.save!
+ u.delete!
+ User.all.each do |usr|
+ usr.should_not eq(u)
+ end
+ end
end
\ No newline at end of file