Fix tests
This commit is contained in:
parent
3a022da360
commit
2b51c6e13f
|
@ -1,6 +1,6 @@
|
|||
language: ruby
|
||||
rvm:
|
||||
- 2.2.3
|
||||
- 2.6.0
|
||||
services:
|
||||
- memcached
|
||||
script:
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue