summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_commands_contents_command.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/test_gem_commands_contents_command.rb')
-rw-r--r--test/rubygems/test_gem_commands_contents_command.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/rubygems/test_gem_commands_contents_command.rb b/test/rubygems/test_gem_commands_contents_command.rb
index 7c89c67dd4..d79174717b 100644
--- a/test/rubygems/test_gem_commands_contents_command.rb
+++ b/test/rubygems/test_gem_commands_contents_command.rb
@@ -1,5 +1,5 @@
# frozen_string_literal: true
-require 'rubygems/test_case'
+require_relative 'helper'
require 'rubygems/commands/contents_command'
class TestGemCommandsContentsCommand < Gem::TestCase
@@ -50,7 +50,7 @@ class TestGemCommandsContentsCommand < Gem::TestCase
def test_execute_bad_gem
@cmd.options[:args] = %w[foo]
- assert_raises Gem::MockGemUi::TermError do
+ assert_raise Gem::MockGemUi::TermError do
use_ui @ui do
@cmd.execute
end
@@ -94,7 +94,7 @@ class TestGemCommandsContentsCommand < Gem::TestCase
def test_execute_missing_single
@cmd.options[:args] = %w[foo]
- assert_raises Gem::MockGemUi::TermError do
+ assert_raise Gem::MockGemUi::TermError do
use_ui @ui do
@cmd.execute
end
@@ -110,7 +110,7 @@ class TestGemCommandsContentsCommand < Gem::TestCase
gem 'foo', 1
- assert_raises Gem::MockGemUi::TermError do
+ assert_raise Gem::MockGemUi::TermError do
use_ui @ui do
@cmd.execute
end