aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenny Shen <jenny.shen@shopify.com>2023-07-01 00:20:57 -0400
committergit <svn-admin@ruby-lang.org>2023-07-28 16:08:09 +0000
commite96b3138a85d42fe5ee5ef4ddd1ea12b784e8d80 (patch)
treea436bcbc44e02cc4ff406280ac100076f28116aa
parent24913e3dda3d4ebd633e94e46ca221ebfcb9f89b (diff)
downloadruby-e96b3138a85d42fe5ee5ef4ddd1ea12b784e8d80.tar.gz
[rubygems/rubygems] Use assert_raise in webauthn poller tests
https://github.com/rubygems/rubygems/commit/0969ad330e
-rw-r--r--test/rubygems/test_webauthn_poller.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/rubygems/test_webauthn_poller.rb b/test/rubygems/test_webauthn_poller.rb
index 776deba9cc..23c24faa11 100644
--- a/test/rubygems/test_webauthn_poller.rb
+++ b/test/rubygems/test_webauthn_poller.rb
@@ -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