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 da1466a commit e6a3de3Copy full SHA for e6a3de3
spec/oauth2/strategy/assertion_spec.rb
@@ -128,8 +128,8 @@
128
it "raises JWT::EncodeError" do
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
- # a very old version of the jwt gem gets installed.
132
- if VersionGem::Ruby.gte_minimum_version?("2.5")
+ # an old version (< v2.4) of the jwt gem gets installed.
+ if Gem::Version.new(JWT::VERSION) >= Gem::Version.new("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