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:
parent
65850baf98
commit
7c8caf930d
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue