summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_commands_push_command.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2021-05-11 12:25:46 +0900
committerHiroshi SHIBATA <[email protected]>2021-05-12 17:24:43 +0900
commitc30594bb0c23b5b23c3d3ca490e3cac34d09c1f9 (patch)
treef926189d35a363d9ad71b8e0359aa7a9662fec9f /test/rubygems/test_gem_commands_push_command.rb
parent2c0072dec58cb5f99a072a3b2dd341974ec84887 (diff)
[rubygems/rubygems] Use assert_raise instead of assert_raises
https://github.com/rubygems/rubygems/commit/769e87f011
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4491
Diffstat (limited to 'test/rubygems/test_gem_commands_push_command.rb')
-rw-r--r--test/rubygems/test_gem_commands_push_command.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/rubygems/test_gem_commands_push_command.rb b/test/rubygems/test_gem_commands_push_command.rb
index 55dd51e6ad..4f0feabfa7 100644
--- a/test/rubygems/test_gem_commands_push_command.rb
+++ b/test/rubygems/test_gem_commands_push_command.rb
@@ -123,7 +123,7 @@ class TestGemCommandsPushCommand < Gem::TestCase
Gem.configuration.disable_default_gem_server = true
response = "You must specify a gem server"
- assert_raises Gem::MockGemUi::TermError do
+ assert_raise Gem::MockGemUi::TermError do
use_ui @ui do
@cmd.send_gem(@path)
end
@@ -252,7 +252,7 @@ class TestGemCommandsPushCommand < Gem::TestCase
response = %(ERROR: "#{@host}" is not allowed by the gemspec, which only allows "https://privategemserver.example")
- assert_raises Gem::MockGemUi::TermError do
+ assert_raise Gem::MockGemUi::TermError do
send_battery
end
@@ -284,7 +284,7 @@ class TestGemCommandsPushCommand < Gem::TestCase
response = "ERROR: \"#{@host}\" is not allowed by the gemspec, which only allows \"#{push_host}\""
- assert_raises Gem::MockGemUi::TermError do
+ assert_raise Gem::MockGemUi::TermError do
send_battery
end
@@ -332,7 +332,7 @@ class TestGemCommandsPushCommand < Gem::TestCase
def test_raises_error_with_no_arguments
def @cmd.sign_in(*); end
- assert_raises Gem::CommandLineError do
+ assert_raise Gem::CommandLineError do
@cmd.execute
end
end
@@ -342,7 +342,7 @@ class TestGemCommandsPushCommand < Gem::TestCase
@fetcher.data["#{@host}/api/v1/gems"] = [response, 403, 'Forbidden']
@cmd.instance_variable_set :@host, @host
- assert_raises Gem::MockGemUi::TermError do
+ assert_raise Gem::MockGemUi::TermError do
use_ui @ui do
@cmd.send_gem(@path)
end
@@ -392,7 +392,7 @@ class TestGemCommandsPushCommand < Gem::TestCase
@fetcher.data["#{Gem.host}/api/v1/gems"] = [response, 401, 'Unauthorized']
@otp_ui = Gem::MockGemUi.new "111111\n"
- assert_raises Gem::MockGemUi::TermError do
+ assert_raise Gem::MockGemUi::TermError do
use_ui @otp_ui do
@cmd.send_gem(@path)
end