spec/timestamp_spec.rb in redis_object-1.4.9 vs spec/timestamp_spec.rb in redis_object-1.5.0
- old
+ new
@@ -11,10 +11,9 @@
it "should get recently created object" do
(1..5).each do |n|
TimestampedObject.create(n.to_s)
- sleep Random.rand(1.0)
end
TimestampedObject.recently_created.first.id.should eq("5")
TimestampedObject.recently_updated.first.id.should eq("5")