diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-25 22:58:43 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-25 22:58:43 +0000 |
commit | b61d8b6045497a5b2185bf8cb61a381f179d3ecd (patch) | |
tree | 0b7980dd65f71136db50a788d5e5a052efdf66ed /test/rubygems/test_gem_format.rb | |
parent | 17358af75b80343f7861907b9288607e67a08f61 (diff) | |
download | ruby-b61d8b6045497a5b2185bf8cb61a381f179d3ecd.tar.gz |
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_format.rb')
-rw-r--r-- | test/rubygems/test_gem_format.rb | 10 |
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 - |