minor: test that already passes

This commit is contained in:
Mike Dirolf 2009-08-26 10:57:14 -04:00
parent 47c34266cf
commit 46a8f78ce5

View File

@ -177,5 +177,14 @@ class TestCollection < Test::Unit::TestCase
end end
assert c.closed? assert c.closed?
end end
def test_save_symbol_find_string
@@test.save(:foo => :mike)
assert_equal :mike, @@test.find_one(:foo => :mike)["foo"]
assert_equal :mike, @@test.find_one("foo" => :mike)["foo"]
assert_equal nil, @@test.find_one(:foo => "mike")
assert_equal nil, @@test.find_one("foo" => "mike")
end
end end