diff options
author | Arthur Neves <arthurnn@gmail.com> | 2016-06-14 13:06:30 -0400 |
---|---|---|
committer | Arthur Neves <arthurnn@gmail.com> | 2016-06-14 13:06:30 -0400 |
commit | 1f63cd9190a44d5604ec7ea69cc78e31760611cf (patch) | |
tree | 9a76c6800afcc9b251850e5290c5431e1c399a07 | |
parent | 009b2a54344eb2463fa4018d9b20cdfc4c0495ac (diff) | |
download | rails-1f63cd9190a44d5604ec7ea69cc78e31760611cf.tar.gz rails-1f63cd9190a44d5604ec7ea69cc78e31760611cf.tar.bz2 rails-1f63cd9190a44d5604ec7ea69cc78e31760611cf.zip |
Fix postgresql query_cache test
-rw-r--r-- | activerecord/test/cases/query_cache_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/cases/query_cache_test.rb b/activerecord/test/cases/query_cache_test.rb index 25b16ae142..d5c01315c1 100644 --- a/activerecord/test/cases/query_cache_test.rb +++ b/activerecord/test/cases/query_cache_test.rb @@ -182,6 +182,7 @@ class QueryCacheTest < ActiveRecord::TestCase refute Task.connected? Task.cache do + Task.connection # warmup postgresql connection setup queries assert_queries(2) { Task.find(1); Task.find(1) } end ensure |