summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_format.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/test_gem_format.rb')
-rw-r--r--test/rubygems/test_gem_format.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/test/rubygems/test_gem_format.rb b/test/rubygems/test_gem_format.rb
index 4014acfed9..4d8a38a062 100644
--- a/test/rubygems/test_gem_format.rb
+++ b/test/rubygems/test_gem_format.rb
@@ -4,7 +4,6 @@
# See LICENSE.txt for permissions.
#++
-require 'test/unit'
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require File.join(File.expand_path(File.dirname(__FILE__)), 'simple_gem')
require 'rubygems/format'
@@ -36,27 +35,27 @@ class TestGemFormat < RubyGemTestCase
end
def test_from_file_by_path_nonexistent
- assert_raise Gem::Exception do
+ assert_raises Gem::Exception do
Gem::Format.from_file_by_path '/nonexistent'
end
end
def test_from_io_garbled
- e = assert_raise Gem::Package::FormatError do
+ e = assert_raises Gem::Package::FormatError do
# subtly bogus input
Gem::Format.from_io(StringIO.new(@simple_gem.upcase))
end
assert_equal 'No metadata found!', e.message
- e = assert_raise Gem::Package::FormatError do
+ e = assert_raises Gem::Package::FormatError do
# Totally bogus input
Gem::Format.from_io(StringIO.new(@simple_gem.reverse))
end
assert_equal 'No metadata found!', e.message
- e = assert_raise Gem::Package::FormatError do
+ e = assert_raises Gem::Package::FormatError do
# This was intentionally screws up YAML parsing.
Gem::Format.from_io(StringIO.new(@simple_gem.gsub(/:/, "boom")))
end
@@ -66,4 +65,3 @@ class TestGemFormat < RubyGemTestCase
end
-