Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
santib committed Oct 15, 2024
1 parent bc82df4 commit 8ec8f33
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@

describe "ActiveSupport::Cache::MemCacheStore (pooled) as a cache backend" do
before do
Rack::Attack.cache.store = ActiveSupport::Cache::MemCacheStore.new(pool_size: 2)
Rack::Attack.cache.store = if ActiveSupport.gem_version >= Gem::Version.new("7.2.0")
ActiveSupport::Cache::MemCacheStore.new(pool: true)
else
ActiveSupport::Cache::MemCacheStore.new(pool_size: 2)
end
end

after do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@

describe "ActiveSupport::Cache::RedisCacheStore (pooled) as a cache backend" do
before do
Rack::Attack.cache.store = ActiveSupport::Cache::RedisCacheStore.new(pool_size: 2)
Rack::Attack.cache.store = if ActiveSupport.gem_version >= Gem::Version.new("7.2.0")
ActiveSupport::Cache::RedisCacheStore.new(pool: true)
else
ActiveSupport::Cache::RedisCacheStore.new(pool_size: 2)
end
end

after do
Expand Down

0 comments on commit 8ec8f33

Please sign in to comment.