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 416bead
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)
if Rails.gem_version >= Gem::Version.new("7.2.0")
Rack::Attack.cache.store = ActiveSupport::Cache::RedisCacheStore.new(pool: true)
else
Rack::Attack.cache.store = ActiveSupport::Cache::RedisCacheStore.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)
if Rails.gem_version >= Gem::Version.new("7.2.0")
Rack::Attack.cache.store = ActiveSupport::Cache::RedisCacheStore.new(pool: true)
else
Rack::Attack.cache.store = ActiveSupport::Cache::RedisCacheStore.new(pool_size: 2)
end
end

after do
Expand Down

0 comments on commit 416bead

Please sign in to comment.