Fix tests

This commit is contained in:
Jason Lee 2019-12-20 15:36:24 +08:00
parent 3a022da360
commit 2b51c6e13f
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
language: ruby language: ruby
rvm: rvm:
- 2.2.3 - 2.6.0
services: services:
- memcached - memcached
script: script:

View File

@ -31,7 +31,8 @@ describe RuCaptcha do
describe '.rucaptcha_sesion_key_key' do describe '.rucaptcha_sesion_key_key' do
it 'should work' do it 'should work' do
expect(simple.rucaptcha_sesion_key_key).to eq ['rucaptcha-session', simple.session.id].join(':') session_id_digest = Digest::SHA256.hexdigest(simple.session.id.inspect)
expect(simple.rucaptcha_sesion_key_key).to eq ['rucaptcha-session', session_id_digest].join(':')
end end
end end