Skip to content

Commit

Permalink
Fix test assertion for exception message content
Browse files Browse the repository at this point in the history
  • Loading branch information
anakinj committed Apr 21, 2023
1 parent e5f5711 commit cd75890
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/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 "secret":String/)
raise_error(NoMethodError, /undefined method `verify' for/)
)
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 "secret":String/)
raise_error(NoMethodError, /undefined method `group' for/)
)
end
end
Expand Down

0 comments on commit cd75890

Please sign in to comment.