1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix "warning: assigned but unused variable - task"

This commit is contained in:
Ryuta Kamizono 2016-08-26 06:21:40 +09:00
parent 029cbb3535
commit 65d71d8d42

View file

@ -215,7 +215,7 @@ class QueryCacheTest < ActiveRecord::TestCase
def test_query_cached_even_when_types_are_reset
Task.cache do
# Warm the cache
task = Task.find(1)
Task.find(1)
Task.connection.type_map.clear