Permalink
Browse files

adding test for the symbol refs

  • Loading branch information...
1 parent 65850ba commit 7c8caf930d1176503259e9e811ae9935caf1a7b5 @tenderlove tenderlove committed Mar 5, 2013
Showing with 7 additions and 0 deletions.
  1. +7 −0 activerecord/test/cases/finder_test.rb
@@ -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

0 comments on commit 7c8caf9

Please sign in to comment.