From 4f0812296003184b7c594199466ad23b063475e6 Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Wed, 25 May 2016 11:08:48 +0800 Subject: [PATCH] Fix test --- spec/cache_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/cache_spec.rb b/spec/cache_spec.rb index 0656403..7b03fca 100644 --- a/spec/cache_spec.rb +++ b/spec/cache_spec.rb @@ -1,6 +1,10 @@ require 'spec_helper' describe RuCaptcha::Cache do + before(:all) do + RuCaptcha::Captcha.send(:prepend, RuCaptcha::Cache) + end + describe '.random_chars_with_cache' do it 'should generate max chars by config.cache_limit' do allow(RuCaptcha.config).to receive(:cache_limit).and_return(5)