minor: update collection.clear test

This commit is contained in:
Kyle Banker 2009-10-22 14:47:40 -04:00
parent 0eb83d941d
commit 1e8f3176bf
1 changed files with 5 additions and 0 deletions

View File

@ -340,6 +340,11 @@ class TestCollection < Test::Unit::TestCase
assert_equal 0, @collection.find.count
end
should "remove all records if deprecated clear is used" do
@collection.clear
assert_equal 0, @collection.find.count
end
should "remove only matching records" do
@collection.remove({:name => "Jones"})
assert_equal 1, @collection.size