aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-06-29 03:11:15 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-06-29 03:15:02 +0900
commit4cf41833edda251dc9b49dfe197eebd144d8993e (patch)
tree678ba32afdd6092a78ebb81fab50f5d7dd2dcae0 /activerecord
parentda5dbada0464a9f1d17154f1cf9e51029b3efa48 (diff)
downloadrails-4cf41833edda251dc9b49dfe197eebd144d8993e.tar.gz
rails-4cf41833edda251dc9b49dfe197eebd144d8993e.tar.bz2
rails-4cf41833edda251dc9b49dfe197eebd144d8993e.zip
Show query cache keys in `test_middleware_caches`
`test_middleware_caches` also failed same as #29600. https://travis-ci.org/rails/rails/jobs/248017174#L487-L489
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/query_cache_test.rb3
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 c2d40f2940..d888a29c60 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({})