aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_source_info_cache.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_source_info_cache.rb
parent17358af75b80343f7861907b9288607e67a08f61 (diff)
downloadruby-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_info_cache.rb')
-rw-r--r--test/rubygems/test_gem_source_info_cache.rb12
1 files changed, 5 insertions, 7 deletions
diff --git a/test/rubygems/test_gem_source_info_cache.rb b/test/rubygems/test_gem_source_info_cache.rb
index 744a51c154..2a4ee6922a 100644
--- a/test/rubygems/test_gem_source_info_cache.rb
+++ b/test/rubygems/test_gem_source_info_cache.rb
@@ -1,11 +1,9 @@
-#!/usr/bin/env ruby
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
# See LICENSE.txt for permissions.
#++
-require 'test/unit'
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require 'rubygems/source_info_cache'
@@ -49,7 +47,7 @@ class TestGemSourceInfoCache < RubyGemTestCase
Gem.sources.replace %W[#{@gem_repo}]
use_ui @ui do
- assert_not_nil Gem::SourceInfoCache.cache
+ refute_nil Gem::SourceInfoCache.cache
assert_kind_of Gem::SourceInfoCache, Gem::SourceInfoCache.cache
assert_equal Gem::SourceInfoCache.cache.object_id,
Gem::SourceInfoCache.cache.object_id
@@ -68,11 +66,11 @@ class TestGemSourceInfoCache < RubyGemTestCase
Gem.sources.replace %w[#{@gem_repo}]
use_ui @ui do
- assert_not_nil Gem::SourceInfoCache.cache
+ refute_nil Gem::SourceInfoCache.cache
assert_kind_of Gem::SourceInfoCache, Gem::SourceInfoCache.cache
assert_equal Gem::SourceInfoCache.cache.object_id,
Gem::SourceInfoCache.cache.object_id
- assert_no_match %r|Bulk updating|, @ui.output
+ refute_match %r|Bulk updating|, @ui.output
end
end
@@ -147,7 +145,7 @@ class TestGemSourceInfoCache < RubyGemTestCase
def test_cache_data_none_writable
FileUtils.chmod 0444, @sic.system_cache_file
FileUtils.chmod 0444, @sic.user_cache_file
- e = assert_raise RuntimeError do
+ e = assert_raises RuntimeError do
@sic.cache_data
end
assert_equal 'unable to locate a writable cache file', e.message
@@ -202,7 +200,7 @@ class TestGemSourceInfoCache < RubyGemTestCase
def test_cache_file_none_writable
FileUtils.chmod 0444, @sic.system_cache_file
FileUtils.chmod 0444, @sic.user_cache_file
- e = assert_raise RuntimeError do
+ e = assert_raises RuntimeError do
@sic.cache_file
end
assert_equal 'unable to locate a writable cache file', e.message