summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_commands_query_command.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/test_gem_commands_query_command.rb')
-rw-r--r--test/rubygems/test_gem_commands_query_command.rb11
1 files changed, 5 insertions, 6 deletions
diff --git a/test/rubygems/test_gem_commands_query_command.rb b/test/rubygems/test_gem_commands_query_command.rb
index b17e2a3ad5..785a08cd6c 100644
--- a/test/rubygems/test_gem_commands_query_command.rb
+++ b/test/rubygems/test_gem_commands_query_command.rb
@@ -1,4 +1,3 @@
-require 'test/unit'
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require 'rubygems/commands/query_command'
@@ -99,7 +98,7 @@ pl (1)
def test_execute_installed
@cmd.handle_options %w[-n c --installed]
- e = assert_raise Gem::SystemExitException do
+ e = assert_raises Gem::SystemExitException do
use_ui @ui do
@cmd.execute
end
@@ -115,7 +114,7 @@ pl (1)
def test_execute_installed_no_name
@cmd.handle_options %w[--installed]
- e = assert_raise Gem::SystemExitException do
+ e = assert_raises Gem::SystemExitException do
use_ui @ui do
@cmd.execute
end
@@ -130,7 +129,7 @@ pl (1)
def test_execute_installed_not_installed
@cmd.handle_options %w[-n not_installed --installed]
- e = assert_raise Gem::SystemExitException do
+ e = assert_raises Gem::SystemExitException do
use_ui @ui do
@cmd.execute
end
@@ -145,7 +144,7 @@ pl (1)
def test_execute_installed_version
@cmd.handle_options %w[-n c --installed --version 1.2]
- e = assert_raise Gem::SystemExitException do
+ e = assert_raises Gem::SystemExitException do
use_ui @ui do
@cmd.execute
end
@@ -160,7 +159,7 @@ pl (1)
def test_execute_installed_version_not_installed
@cmd.handle_options %w[-n c --installed --version 2]
- e = assert_raise Gem::SystemExitException do
+ e = assert_raises Gem::SystemExitException do
use_ui @ui do
@cmd.execute
end