Skip to content

Commit fa546ea

Browse files
committed
👷 Fixes for truffleruby & jruby
1 parent cdd6a5f commit fa546ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/oauth2/strategy/assertion_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
# this behavior is handled by the JWT gem, but this should make sure it is consistent
130130
# On old Ruby (versions 2.4 and below) the error raised was different because
131131
# an old version (< v2.4) of the jwt gem gets installed.
132-
if Gem::Version.create(JWT::VERSION::STRING) >= Gem::Version.create("2.4")
132+
if defined?(JWT::VERSION::STRING) && Gem::Version.create(JWT::VERSION::STRING) >= Gem::Version.create("2.4")
133133
expect { client_assertion.get_token(claims, encoding_opts) }.to raise_error(JWT::EncodeError, "Unsupported signing method")
134134
else
135135
expect { client_assertion.get_token(claims, encoding_opts) }.to raise_error(NotImplementedError)

0 commit comments

Comments
 (0)