Skip to content
This repository
Browse code

adding test for the symbol refs

  • Loading branch information...
commit 9d7a748a5174224ead4d44aedc3849d1d1e37b18 1 parent ba12ef6
Aaron Patterson tenderlove authored

Showing 1 changed file with 7 additions and 0 deletions. Show diff stats Hide diff stats

  1. +7 0 activerecord/test/cases/finder_test.rb
7 activerecord/test/cases/finder_test.rb
@@ -31,6 +31,13 @@ def test_find
31 31 assert_equal(topics(:first).title, Topic.find(1).title)
32 32 end
33 33
  34 + def test_symbols_table_ref
  35 + Post.first # warm up
  36 + x = Symbol.all_symbols.count
  37 + Post.where("title" => {"xxxqqqq" => "bar"})
  38 + assert_equal x, Symbol.all_symbols.count
  39 + end
  40 +
34 41 # find should handle strings that come from URLs
35 42 # (example: Category.find(params[:id]))
36 43 def test_find_with_string

0 comments on commit 9d7a748

Please sign in to comment.
Something went wrong with that request. Please try again.