summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_command.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-25 22:58:43 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-25 22:58:43 +0000
commitb61d8b6045497a5b2185bf8cb61a381f179d3ecd (patch)
tree0b7980dd65f71136db50a788d5e5a052efdf66ed /test/rubygems/test_gem_command.rb
parent17358af75b80343f7861907b9288607e67a08f61 (diff)
Update to RubyGems 1.3.1 r1909.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems/test_gem_command.rb')
-rw-r--r--test/rubygems/test_gem_command.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/rubygems/test_gem_command.rb b/test/rubygems/test_gem_command.rb
index 9ed57b3692..08da9fb7d6 100644
--- a/test/rubygems/test_gem_command.rb
+++ b/test/rubygems/test_gem_command.rb
@@ -5,7 +5,6 @@
# See LICENSE.txt for permissions.
#++
-require 'test/unit'
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require 'rubygems/command'
@@ -63,7 +62,7 @@ class TestGemCommand < RubyGemTestCase
assert_match %r|-x, --zip|, @cmd.parser.to_s
assert_match %r|-z, --exe|, @cmd.parser.to_s
- assert_no_match %r|-x, --exe|, @cmd.parser.to_s
+ refute_match %r|-x, --exe|, @cmd.parser.to_s
end
def test_basic_accessors
@@ -109,7 +108,7 @@ class TestGemCommand < RubyGemTestCase
use_ui @ui do
@cmd.when_invoked do true end
- ex = assert_raise(OptionParser::InvalidOption) do
+ ex = assert_raises OptionParser::InvalidOption do
@cmd.invoke('-zzz')
end