提交 7c8caf93 编写于 作者: A Aaron Patterson

adding test for the symbol refs

上级 65850baf
......@@ -31,6 +31,13 @@ def test_find
assert_equal(topics(:first).title, Topic.find(1).title)
end
def test_symbols_table_ref
Post.first # warm up
x = Symbol.all_symbols.count
Post.where("title" => {"xxxqqqq" => "bar"})
assert_equal x, Symbol.all_symbols.count
end
# find should handle strings that come from URLs
# (example: Category.find(params[:id]))
def test_find_with_string
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册