Skip to content

Commit

Permalink
Merge pull request rails#26284 from kamipo/fix_warnig
Browse files Browse the repository at this point in the history
Fix "warning: assigned but unused variable - task"
  • Loading branch information
guilleiguaran committed Aug 26, 2016
2 parents 029cbb3 + 65d71d8 commit 56fe966
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/test/cases/query_cache_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def test_query_cache_doesnt_leak_cached_results_of_rolled_back_queries
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

Expand Down

0 comments on commit 56fe966

Please sign in to comment.