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 () | |
tree | f926189d35a363d9ad71b8e0359aa7a9662fec9f /test/rubygems/test_gem_commands_build_command.rb | |
parent | 2c0072dec58cb5f99a072a3b2dd341974ec84887 (diff) |
[rubygems/rubygems] Use assert_raise instead of assert_raises
https://.com/rubygems/rubygems/commit/769e87f011
Notes: Merged: https://.com/ruby/ruby/pull/4491
-rw-r--r-- | test/rubygems/test_gem_commands_build_command.rb | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -126,7 +126,7 @@ class TestGemCommandsBuildCommand < Gem::TestCase use_ui @ui do Dir.chdir @tempdir do - assert_raises Gem::InvalidSpecificationException do @cmd.execute end end @@ -180,7 +180,7 @@ class TestGemCommandsBuildCommand < Gem::TestCase use_ui @ui do Dir.chdir @tempdir do - assert_raises Gem::InvalidSpecificationException do @cmd.execute end end @@ -209,7 +209,7 @@ class TestGemCommandsBuildCommand < Gem::TestCase out, err = use_ui @ui do capture_output do - assert_raises Gem::MockGemUi::TermError do @cmd.execute end end @@ -225,7 +225,7 @@ class TestGemCommandsBuildCommand < Gem::TestCase def test_execute_missing_file @cmd.options[:args] = %w[some_gem] use_ui @ui do - assert_raises Gem::MockGemUi::TermError do @cmd.execute end end @@ -329,7 +329,7 @@ class TestGemCommandsBuildCommand < Gem::TestCase @cmd.options[:args] = ["*.gemspec"] use_ui @ui do - assert_raises Gem::MockGemUi::TermError do @cmd.execute end end @@ -527,7 +527,7 @@ class TestGemCommandsBuildCommand < Gem::TestCase use_ui @ui do Dir.chdir(gemspec_dir) do - assert_raises Gem::MockGemUi::TermError do @cmd.execute end end |