Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/json_web_token/rsa_token_spec.rb')
-rw-r--r--spec/lib/json_web_token/rsa_token_spec.rb5
1 files changed, 3 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 6d2026752d6..b77345d8b7a 100644
--- a/spec/lib/json_web_token/rsa_token_spec.rb
+++ b/spec/lib/json_web_token/rsa_token_spec.rb
@@ -30,8 +30,9 @@ RSpec.describe JSONWebToken::RSAToken do
subject { JWT.decode(rsa_encoded, rsa_key, true, { algorithm: 'RS256' }) }
- it { expect {subject}.not_to raise_error }
+ it { expect { subject }.not_to raise_error }
it { expect(subject.first).to include('key' => 'value') }
+
it do
expect(subject.second).to eq(
"typ" => "JWT",
@@ -45,7 +46,7 @@ RSpec.describe JSONWebToken::RSAToken do
subject { JWT.decode(rsa_encoded, new_key, true, { algorithm: 'RS256' }) }
- it { expect {subject}.to raise_error(JWT::DecodeError) }
+ it { expect { subject }.to raise_error(JWT::DecodeError) }
end
end
end