Permalink
Browse files

add test

  • Loading branch information...
1 parent 6e5a8df commit 96f5304494e50affd277ee80d6f80ca52801de77 Kyle Maxwell committed Jan 11, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/test/scala/com/twitter/flockdb/unit/SqlShardSpec.scala
@@ -321,6 +321,14 @@ class SqlShardSpec extends IntegrationSpecification with JMocker {
}
}
+ "getMetadata" in {
+ "side-effect rows should be created with a timestamp" >> {
+ shard.add(alice, bob, 1, now)
+ shard.getMetadata(alice).isDefined must eventually(be_==(true))
+ shard.getMetadata(alice).get.updatedAt mustEqual now
+ }
+ }
+
"get" in {
shard.add(alice, bob, 1, now)
shard.archive(carl, darcy, 2, now)

0 comments on commit 96f5304

Please sign in to comment.