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