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
rvm:
- 2.2.3
- 2.6.0
services:
- memcached
script:

View File

@ -31,7 +31,8 @@ describe RuCaptcha do
describe '.rucaptcha_sesion_key_key' 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