spec/jason_object_spec.rb in medea-0.6.5 vs spec/jason_object_spec.rb in medea-0.6.6

- old
+ new

@@ -79,6 +79,17 @@ (@user.update_attributes({})).should eq(true) @user.stub(:save).and_return false (@user.update_attributes({})).should eq(false) end + + it "should provide access to its timestamp from JasonDB" do + @user.save! + @user.jason_timestamp.should_not be_nil + t = @user.jason_timestamp + @user.name = "Smithy" + @user.save! + user2 = User.get_by_key(@user.jason_key) + user2.jason_timestamp.should_not be_nil + user2.jason_timestamp.should be > t + end end \ No newline at end of file