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_source_index.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_source_index.rb')
-rw-r--r-- | test/rubygems/test_gem_source_index.rb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/test/rubygems/test_gem_source_index.rb b/test/rubygems/test_gem_source_index.rb index 7f379ef19a..48760292c0 100644 --- a/test/rubygems/test_gem_source_index.rb +++ b/test/rubygems/test_gem_source_index.rb @@ -4,7 +4,6 @@ # See LICENSE.txt for permissions. #++ -require 'test/unit' require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities') require 'rubygems/source_index' require 'rubygems/config_file' @@ -150,7 +149,7 @@ WARNING: Invalid .gemspec format in '#{spec_file}' end use_ui @ui do - assert_raise Interrupt do + assert_raises Interrupt do Gem::SourceIndex.load_specification(spec_file) end end @@ -192,7 +191,7 @@ WARNING: Invalid .gemspec format in '#{spec_file}' end use_ui @ui do - assert_raise SystemExit do + assert_raises SystemExit do Gem::SourceIndex.load_specification(spec_file) end end @@ -232,7 +231,7 @@ WARNING: Invalid .gemspec format in '#{spec_file}' @fetcher.data["#{@gem_repo}yaml.Z"] = proc { raise SocketError } @fetcher.data["#{@gem_repo}yaml"] = proc { raise SocketError } - e = assert_raise Gem::RemoteSourceException do + e = assert_raises Gem::RemoteSourceException do use_ui @ui do @source_index.fetch_bulk_index @uri end @@ -357,7 +356,7 @@ WARNING: Invalid .gemspec format in '#{spec_file}' @fetcher.data["#{@gem_repo}quick/index.rz"] = proc { raise Exception } - e = assert_raise Gem::OperationNotSupportedError do + e = assert_raises Gem::OperationNotSupportedError do @source_index.fetch_quick_index @uri, true end @@ -613,7 +612,7 @@ WARNING: Invalid .gemspec format in '#{spec_file}' def test_refresh_bang_not_from_dir source_index = Gem::SourceIndex.new - e = assert_raise RuntimeError do + e = assert_raises RuntimeError do source_index.refresh! end |