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/omni_auth/strategies/jwt_spec.rb')
-rw-r--r--spec/lib/omni_auth/strategies/jwt_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/lib/omni_auth/strategies/jwt_spec.rb b/spec/lib/omni_auth/strategies/jwt_spec.rb
index b29e48b0de5..97547912663 100644
--- a/spec/lib/omni_auth/strategies/jwt_spec.rb
+++ b/spec/lib/omni_auth/strategies/jwt_spec.rb
@@ -51,6 +51,7 @@ RSpec.describe OmniAuth::Strategies::Jwt do
context "when the #{algorithm} algorithm is used" do
let(:algorithm) { algorithm }
let(:secret) do
+ # rubocop:disable Style/CaseLikeIf
if private_key_class == OpenSSL::PKey::RSA
private_key_class.generate(2048)
.to_pem
@@ -61,6 +62,7 @@ RSpec.describe OmniAuth::Strategies::Jwt do
else
private_key_class.new(jwt_config.strategy.secret)
end
+ # rubocop:enable Style/CaseLikeIf
end
let(:private_key) { private_key_class ? private_key_class.new(secret) : secret }