Skip to content

Commit

Permalink
Adjust to changed exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
anakinj committed Feb 17, 2024
1 parent 13dd333 commit d9352e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/jwt/jwk/decode_with_jwk_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@

it 'fails in some way' do
expect { described_class.decode(signed_token, nil, true, algorithms: [algorithm], jwks: jwks) }.to(
raise_error(NoMethodError, /undefined method `verify' for/)
raise_error(NoMethodError, /undefined method .*verify/)
)
end
end
Expand All @@ -148,7 +148,7 @@

it 'fails in some way' do
expect { described_class.decode(signed_token, nil, true, algorithms: ['ES384'], jwks: jwks) }.to(
raise_error(NoMethodError, /undefined method `group' for/)
raise_error(NoMethodError, /undefined method .*group/)
)
end
end
Expand Down

0 comments on commit d9352e8

Please sign in to comment.