Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Warm up Symbols with where method

Looks like #first wasn't warm enough...
  • Loading branch information...
commit 9a7d7624a1e20094fddd0ff90d67e4049c09a568 1 parent 71e8f19
@amatsuda amatsuda authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/test/cases/finder_test.rb
View
2  activerecord/test/cases/finder_test.rb
@@ -51,7 +51,7 @@ def test_find_passing_active_record_object_is_deprecated
end
def test_symbols_table_ref
- Post.first # warm up
+ Post.where("author_id" => nil) # warm up
x = Symbol.all_symbols.count
Post.where("title" => {"xxxqqqq" => "bar"})
assert_equal x, Symbol.all_symbols.count
Please sign in to comment.
Something went wrong with that request. Please try again.