Bump rubocop from 1.43.0 to 1.44.1 and fix offenses

This commit is contained in:
zzak 2023-02-02 12:52:05 +09:00
parent 41b5306ad6
commit 9ff1a0496d
3 changed files with 4 additions and 4 deletions

View File

@ -374,7 +374,7 @@ GEM
connection_pool connection_pool
redis-namespace (1.10.0) redis-namespace (1.10.0)
redis (>= 4) redis (>= 4)
regexp_parser (2.6.1) regexp_parser (2.6.2)
reline (0.3.2) reline (0.3.2)
io-console (~> 0.5) io-console (~> 0.5)
representable (3.2.0) representable (3.2.0)
@ -394,7 +394,7 @@ GEM
retriable (3.1.2) retriable (3.1.2)
rexml (3.2.5) rexml (3.2.5)
rouge (4.0.1) rouge (4.0.1)
rubocop (1.43.0) rubocop (1.44.1)
json (~> 2.3) json (~> 2.3)
parallel (~> 1.10) parallel (~> 1.10)
parser (>= 3.2.0.0) parser (>= 3.2.0.0)

View File

@ -403,7 +403,7 @@ class HasManyThroughAssociationsTest < ActiveRecord::TestCase
end end
def test_delete_association def test_delete_association
assert_queries(2) { posts(:welcome); people(:michael); } assert_queries(2) { posts(:welcome); people(:michael) }
assert_queries(1) do assert_queries(1) do
posts(:welcome).people.delete(people(:michael)) posts(:welcome).people.delete(people(:michael))

View File

@ -401,7 +401,7 @@ class QueryCacheTest < ActiveRecord::TestCase
def test_cache_is_flat def test_cache_is_flat
Task.cache do Task.cache do
assert_queries(1) { Topic.find(1); Topic.find(1); } assert_queries(1) { Topic.find(1); Topic.find(1) }
end end
ActiveRecord::Base.cache do ActiveRecord::Base.cache do