Skip to content

Commit e6a3de3

Browse files
committed
👷 Fixes for truffleruby & jruby
1 parent da1466a commit e6a3de3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/oauth2/strategy/assertion_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@
128128
it "raises JWT::EncodeError" do
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
131-
# a very old version of the jwt gem gets installed.
132-
if VersionGem::Ruby.gte_minimum_version?("2.5")
131+
# an old version (< v2.4) of the jwt gem gets installed.
132+
if Gem::Version.new(JWT::VERSION) >= Gem::Version.new("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)