Permalink
Browse files

adding test for the symbol refs

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

Please sign in to comment.