minor: test that already passes
This commit is contained in:
parent
47c34266cf
commit
46a8f78ce5
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user