From 256e64c4a3679e28a5a45555d045096b2fb26939 Mon Sep 17 00:00:00 2001 From: Mike Dirolf Date: Tue, 18 Aug 2009 10:20:16 -0400 Subject: [PATCH] minor: test that already passes --- test/test_collection.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/test_collection.rb b/test/test_collection.rb index 698fbd7..d5cd4c0 100644 --- a/test/test_collection.rb +++ b/test/test_collection.rb @@ -100,6 +100,15 @@ class TestCollection < Test::Unit::TestCase end end + def test_count + @@test.drop + + assert_equal 0, @@test.count + @@test.save({}) + @@test.save({}) + assert_equal 2, @@test.count + end + def test_find_one id = @@test.save("hello" => "world", "foo" => "bar")