Skip to content

Commit d9352e8

Browse files
committed
Adjust to changed exception message
1 parent 13dd333 commit d9352e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/jwt/jwk/decode_with_jwk_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138

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

149149
it 'fails in some way' do
150150
expect { described_class.decode(signed_token, nil, true, algorithms: ['ES384'], jwks: jwks) }.to(
151-
raise_error(NoMethodError, /undefined method `group' for/)
151+
raise_error(NoMethodError, /undefined method .*group/)
152152
)
153153
end
154154
end

0 commit comments

Comments
 (0)