diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2017-06-28 15:55:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-28 15:55:01 -0400 |
commit | 97d276bf8a6b9d79dc50fcbc8a45f6071da0fcef (patch) | |
tree | b7f1855f58e1e1f136dcacacfd8fcff6299f798d /activerecord | |
parent | 316e3c2ff1ff6efb2d1cf43cae1cbd4bf93cf16e (diff) | |
parent | 4cf41833edda251dc9b49dfe197eebd144d8993e (diff) | |
download | rails-97d276bf8a6b9d79dc50fcbc8a45f6071da0fcef.tar.gz rails-97d276bf8a6b9d79dc50fcbc8a45f6071da0fcef.tar.bz2 rails-97d276bf8a6b9d79dc50fcbc8a45f6071da0fcef.zip |
Merge pull request #29614 from kamipo/show_query_cache_keys_2
Show query cache keys in `test_middleware_caches`
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/query_cache_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/test/cases/query_cache_test.rb b/activerecord/test/cases/query_cache_test.rb index 3962453f75..68d18e6471 100644 --- a/activerecord/test/cases/query_cache_test.rb +++ b/activerecord/test/cases/query_cache_test.rb @@ -150,7 +150,8 @@ class QueryCacheTest < ActiveRecord::TestCase mw = middleware { |env| Task.find 1 Task.find 1 - assert_equal 1, ActiveRecord::Base.connection.query_cache.length + query_cache = ActiveRecord::Base.connection.query_cache + assert_equal 1, query_cache.length, query_cache.keys [200, {}, nil] } mw.call({}) |