mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-04-04 11:05:51 +00:00
14 lines
325 B
Ruby
14 lines
325 B
Ruby
require_relative "../../spec_helper"
|
|
require_relative "../../support/cache_store_helper"
|
|
|
|
describe "MemCacheStore as a cache backend" do
|
|
before do
|
|
Rack::Attack.cache.store = ActiveSupport::Cache::MemCacheStore.new
|
|
end
|
|
|
|
after do
|
|
Rack::Attack.cache.store.flush_all
|
|
end
|
|
|
|
it_works_for_cache_backed_features
|
|
end
|