mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-04-06 11:25:50 +00:00
16 lines
401 B
Ruby
16 lines
401 B
Ruby
require_relative "../../spec_helper"
|
|
require_relative "../../support/cache_store_helper"
|
|
|
|
if ActiveSupport.version >= Gem::Version.new("5.2.0")
|
|
describe "RedisCacheStore as a cache backend" do
|
|
before do
|
|
Rack::Attack.cache.store = ActiveSupport::Cache::RedisCacheStore.new
|
|
end
|
|
|
|
after do
|
|
Rack::Attack.cache.store.clear
|
|
end
|
|
|
|
it_works_for_cache_backed_features
|
|
end
|
|
end
|