[rubygems/rubygems] Use assert_raise in webauthn poller tests
https://github.com/rubygems/rubygems/commit/0969ad330e
This commit is contained in:
parent
24913e3dda
commit
e96b3138a8
@ -72,7 +72,7 @@ class WebauthnPollerTest < Gem::TestCase
|
||||
msg: "OK"
|
||||
)
|
||||
|
||||
assert_raises Timeout::Error do
|
||||
assert_raise Timeout::Error do
|
||||
Timeout.timeout(0.1) do
|
||||
Gem::GemcutterUtilities::WebauthnPoller.new({}, @host).poll_for_otp(@webauthn_url, @credentials)
|
||||
end
|
||||
@ -86,7 +86,7 @@ class WebauthnPollerTest < Gem::TestCase
|
||||
msg: "Unauthorized"
|
||||
)
|
||||
|
||||
error = assert_raises Gem::WebauthnVerificationError do
|
||||
error = assert_raise Gem::WebauthnVerificationError do
|
||||
Gem::GemcutterUtilities::WebauthnPoller.new({}, @host).poll_for_otp(@webauthn_url, @credentials)
|
||||
end
|
||||
|
||||
@ -100,7 +100,7 @@ class WebauthnPollerTest < Gem::TestCase
|
||||
msg: "OK"
|
||||
)
|
||||
|
||||
error = assert_raises Gem::WebauthnVerificationError do
|
||||
error = assert_raise Gem::WebauthnVerificationError do
|
||||
Gem::GemcutterUtilities::WebauthnPoller.new({}, @host).poll_for_otp(@webauthn_url, @credentials)
|
||||
end
|
||||
|
||||
@ -114,7 +114,7 @@ class WebauthnPollerTest < Gem::TestCase
|
||||
msg: "OK"
|
||||
)
|
||||
|
||||
error = assert_raises Gem::WebauthnVerificationError do
|
||||
error = assert_raise Gem::WebauthnVerificationError do
|
||||
Gem::GemcutterUtilities::WebauthnPoller.new({}, @host).poll_for_otp(@webauthn_url, @credentials)
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user