This commit is contained in:
Jason Lee 2016-05-25 11:08:48 +08:00
parent bfc24bc56b
commit 4f08122960
1 changed files with 4 additions and 0 deletions

View File

@ -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)