aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-03-05 14:34:54 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2013-04-26 16:47:27 -0700
commit9d7a748a5174224ead4d44aedc3849d1d1e37b18 (patch)
treef84c2dbb58df3933e3fb144f0688d60d920e0d39 /activerecord
parentba12ef6ae15208a608733a06b78940ef92f305b8 (diff)
downloadrails-9d7a748a5174224ead4d44aedc3849d1d1e37b18.tar.gz
rails-9d7a748a5174224ead4d44aedc3849d1d1e37b18.tar.bz2
rails-9d7a748a5174224ead4d44aedc3849d1d1e37b18.zip
adding test for the symbol refs
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/finder_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/activerecord/test/cases/finder_test.rb b/activerecord/test/cases/finder_test.rb
index 7d63d76c34..21bd7b51d5 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