diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-03-05 14:34:54 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-04-26 16:46:27 -0700 |
commit | 7c8caf930d1176503259e9e811ae9935caf1a7b5 (patch) | |
tree | f036f0a42457a02380372dbfaaeb6a9d16d8c657 /activerecord | |
parent | 65850baf984a9349fe96bea136b81eaa36404a02 (diff) | |
download | rails-7c8caf930d1176503259e9e811ae9935caf1a7b5.tar.gz rails-7c8caf930d1176503259e9e811ae9935caf1a7b5.tar.bz2 rails-7c8caf930d1176503259e9e811ae9935caf1a7b5.zip |
adding test for the symbol refs
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/finder_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/activerecord/test/cases/finder_test.rb b/activerecord/test/cases/finder_test.rb index 0ff5be5b1f..557cc7e7a0 100644 --- a/activerecord/test/cases/finder_test.rb +++ b/activerecord/test/cases/finder_test.rb @@ -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 |