1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

adding test for the symbol refs

This commit is contained in:
Aaron Patterson 2013-03-05 14:34:54 -08:00
parent 65850baf98
commit 7c8caf930d

View file

@ -31,6 +31,13 @@ class FinderTest < ActiveRecord::TestCase
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