From 5ff5bf44ba55517507ac59bafb8addaa637c4fa9 Mon Sep 17 00:00:00 2001 From: hakanensari Date: Thu, 17 Apr 2014 18:21:13 +0100 Subject: [PATCH] Don't memoize in test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I don’t think this has any side effect, but still… --- spec/integration/rack_attack_cache_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/integration/rack_attack_cache_spec.rb b/spec/integration/rack_attack_cache_spec.rb index 14bec01..faa1eef 100644 --- a/spec/integration/rack_attack_cache_spec.rb +++ b/spec/integration/rack_attack_cache_spec.rb @@ -30,7 +30,7 @@ describe Rack::Attack::Cache do describe "with #{store.class}" do before { - @cache ||= Rack::Attack::Cache.new + @cache = Rack::Attack::Cache.new @key = "rack::attack:cache-test-key" @expires_in = 1 @cache.store = store