diff options
author | Hiroshi SHIBATA <[email protected]> | 2021-05-11 12:25:46 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2021-05-12 17:24:43 +0900 |
commit | c30594bb0c23b5b23c3d3ca490e3cac34d09c1f9 (patch) | |
tree | f926189d35a363d9ad71b8e0359aa7a9662fec9f /test/rubygems/test_gem_commands_update_command.rb | |
parent | 2c0072dec58cb5f99a072a3b2dd341974ec84887 (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_update_command.rb')
-rw-r--r-- | test/rubygems/test_gem_commands_update_command.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/rubygems/test_gem_commands_update_command.rb b/test/rubygems/test_gem_commands_update_command.rb index 927527e6b1..6693b0921b 100644 --- a/test/rubygems/test_gem_commands_update_command.rb +++ b/test/rubygems/test_gem_commands_update_command.rb @@ -95,7 +95,7 @@ class TestGemCommandsUpdateCommand < Gem::TestCase @cmd.options[:args] = [] @cmd.options[:system] = true - assert_raises Gem::MockGemUi::SystemExitException do + assert_raise Gem::MockGemUi::SystemExitException do use_ui @ui do @cmd.execute end @@ -177,7 +177,7 @@ class TestGemCommandsUpdateCommand < Gem::TestCase @cmd.extend(oldest_version_mod) - assert_raises Gem::MockGemUi::TermError do + assert_raise Gem::MockGemUi::TermError do use_ui @ui do @cmd.execute end @@ -273,7 +273,7 @@ class TestGemCommandsUpdateCommand < Gem::TestCase @cmd.options[:args] = %w[gem] @cmd.options[:system] = true - assert_raises Gem::MockGemUi::TermError do + assert_raise Gem::MockGemUi::TermError do use_ui @ui do @cmd.execute end @@ -291,7 +291,7 @@ class TestGemCommandsUpdateCommand < Gem::TestCase @cmd.options[:args] = [] @cmd.options[:system] = true - assert_raises Gem::MockGemUi::TermError do + assert_raise Gem::MockGemUi::TermError do use_ui @ui do @cmd.execute end @@ -530,7 +530,7 @@ class TestGemCommandsUpdateCommand < Gem::TestCase def test_fetch_remote_gems_error Gem.sources.replace %w[http://nonexistent.example] - assert_raises Gem::RemoteFetcher::FetchError do + assert_raise Gem::RemoteFetcher::FetchError do @cmd.fetch_remote_gems @specs['a-1'] end end @@ -588,7 +588,7 @@ class TestGemCommandsUpdateCommand < Gem::TestCase end def test_handle_options_system_non_version - assert_raises ArgumentError do + assert_raise ArgumentError do @cmd.handle_options %w[--system non-version] end end |