We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdd6a5f commit fa546eaCopy full SHA for fa546ea
spec/oauth2/strategy/assertion_spec.rb
@@ -129,7 +129,7 @@
129
# this behavior is handled by the JWT gem, but this should make sure it is consistent
130
# On old Ruby (versions 2.4 and below) the error raised was different because
131
# an old version (< v2.4) of the jwt gem gets installed.
132
- if Gem::Version.create(JWT::VERSION::STRING) >= Gem::Version.create("2.4")
+ if defined?(JWT::VERSION::STRING) && Gem::Version.create(JWT::VERSION::STRING) >= Gem::Version.create("2.4")
133
expect { client_assertion.get_token(claims, encoding_opts) }.to raise_error(JWT::EncodeError, "Unsupported signing method")
134
else
135
expect { client_assertion.get_token(claims, encoding_opts) }.to raise_error(NotImplementedError)
0 commit comments