diff options
author | Sean McGivern <sean@gitlab.com> | 2019-01-01 11:27:53 +0300 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2019-01-01 11:27:53 +0300 |
commit | 594bcf37af438d972adffc025a2d6c7227581824 (patch) | |
tree | 13ef7f5045927a94c40109a1a7fb6d7512716dab /spec/lib | |
parent | eab7e3c8b9bc267d6c1f1ed883d32679b12544f3 (diff) | |
parent | c6d7130f65e89f659ffd905d8b3b6be4df91a0e2 (diff) |
Merge branch 'sh-bump-omniauth-google-gem' into 'master'
Upgrade Omniauth and JWT gems to switch away from Google+ API
Closes #55668
See merge request gitlab-org/gitlab-ce!24068
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/json_web_token/rsa_token_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/json_web_token/rsa_token_spec.rb b/spec/lib/json_web_token/rsa_token_spec.rb index d6edc964844..a3c54651e80 100644 --- a/spec/lib/json_web_token/rsa_token_spec.rb +++ b/spec/lib/json_web_token/rsa_token_spec.rb @@ -25,7 +25,7 @@ describe JSONWebToken::RSAToken do rsa_token['key'] = 'value' end - subject { JWT.decode(rsa_encoded, rsa_key) } + subject { JWT.decode(rsa_encoded, rsa_key, true, { algorithm: 'RS256' }) } it { expect {subject}.not_to raise_error } it { expect(subject.first).to include('key' => 'value') } @@ -39,7 +39,7 @@ describe JSONWebToken::RSAToken do context 'for invalid key to raise an exception' do let(:new_key) { OpenSSL::PKey::RSA.generate(512) } - subject { JWT.decode(rsa_encoded, new_key) } + subject { JWT.decode(rsa_encoded, new_key, true, { algorithm: 'RS256' }) } it { expect {subject}.to raise_error(JWT::DecodeError) } end |