Fix test
This commit is contained in:
parent
bfc24bc56b
commit
4f08122960
|
@ -1,6 +1,10 @@
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
||||||
describe RuCaptcha::Cache do
|
describe RuCaptcha::Cache do
|
||||||
|
before(:all) do
|
||||||
|
RuCaptcha::Captcha.send(:prepend, RuCaptcha::Cache)
|
||||||
|
end
|
||||||
|
|
||||||
describe '.random_chars_with_cache' do
|
describe '.random_chars_with_cache' do
|
||||||
it 'should generate max chars by config.cache_limit' do
|
it 'should generate max chars by config.cache_limit' do
|
||||||
allow(RuCaptcha.config).to receive(:cache_limit).and_return(5)
|
allow(RuCaptcha.config).to receive(:cache_limit).and_return(5)
|
||||||
|
|
Loading…
Reference in New Issue