From 64fe10f64e042717603bd6310cd27893fee0f711 Mon Sep 17 00:00:00 2001 From: Aaron Suggs Date: Fri, 22 May 2015 13:48:32 -0400 Subject: [PATCH] Clarifying comments for #delete spec method --- spec/integration/rack_attack_cache_spec.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/integration/rack_attack_cache_spec.rb b/spec/integration/rack_attack_cache_spec.rb index 88f790c..06aa51a 100644 --- a/spec/integration/rack_attack_cache_spec.rb +++ b/spec/integration/rack_attack_cache_spec.rb @@ -1,6 +1,9 @@ require_relative '../spec_helper' describe Rack::Attack::Cache do + + # A convenience method for deleting a key from cache. + # Slightly differnet than @cache.delete, which adds a prefix. def delete(key) if @cache.store.respond_to?(:delete) @cache.store.delete(key)