summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-04-30 12:25:23 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-04-30 12:25:23 +0000
commitd5bfa31f824005f7a8ce6c2bae1fafd2461aad80 (patch)
treefdca7086d1fbaa6020750c6f8e19b7ed73026e6b /test
parent587082d57cb4bbf8255239c36cafd253978f87fa (diff)
downloadbundler-d5bfa31f824005f7a8ce6c2bae1fafd2461aad80.tar.gz
* runruby.rb: use RbConfig::CONFIG instead of Config::CONFIG.
* spec/default.mspec: ditto. * yarvtest/yarvtest.rb: ditto. * instruby.rb: ditto. * benchmark/report.rb: ditto. * benchmark/runc.rb: ditto. * tool/eval.rb: ditto. * test/rubygems/test_gem.rb: ditto. * test/rubygems/test_config.rb: ditto. * test/rubygems/test_gem_platform.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/rubygems/test_config.rb2
-rw-r--r--test/rubygems/test_gem.rb2
-rw-r--r--test/rubygems/test_gem_platform.rb6
3 files changed, 5 insertions, 5 deletions
diff --git a/test/rubygems/test_config.rb b/test/rubygems/test_config.rb
index beaa2325dc..4867538ac4 100644
--- a/test/rubygems/test_config.rb
+++ b/test/rubygems/test_config.rb
@@ -11,7 +11,7 @@ require 'rubygems'
class TestConfig < RubyGemTestCase
def test_datadir
- datadir = Config::CONFIG['datadir']
+ datadir = RbConfig::CONFIG['datadir']
assert_equal "#{datadir}/xyz", Config.datadir('xyz')
end
diff --git a/test/rubygems/test_gem.rb b/test/rubygems/test_gem.rb
index fd9954018c..e777527007 100644
--- a/test/rubygems/test_gem.rb
+++ b/test/rubygems/test_gem.rb
@@ -52,7 +52,7 @@ class TestGem < RubyGemTestCase
bindir = if defined?(RUBY_FRAMEWORK_VERSION) then
'/usr/bin'
else
- Config::CONFIG['bindir']
+ RbConfig::CONFIG['bindir']
end
assert_equal bindir, Gem.bindir(default)
diff --git a/test/rubygems/test_gem_platform.rb b/test/rubygems/test_gem_platform.rb
index fdb8fb11ed..e71fcd5c5d 100644
--- a/test/rubygems/test_gem_platform.rb
+++ b/test/rubygems/test_gem_platform.rb
@@ -100,8 +100,8 @@ class TestGemPlatform < RubyGemTestCase
end
def test_initialize_mswin32_vc6
- orig_RUBY_SO_NAME = Config::CONFIG['RUBY_SO_NAME']
- Config::CONFIG['RUBY_SO_NAME'] = 'msvcrt-ruby18'
+ orig_RUBY_SO_NAME = RbConfig::CONFIG['RUBY_SO_NAME']
+ RbConfig::CONFIG['RUBY_SO_NAME'] = 'msvcrt-ruby18'
expected = ['x86', 'mswin32', nil]
@@ -109,7 +109,7 @@ class TestGemPlatform < RubyGemTestCase
assert_equal expected, platform.to_a, 'i386-mswin32 VC6'
ensure
- Config::CONFIG['RUBY_SO_NAME'] = orig_RUBY_SO_NAME
+ RbConfig::CONFIG['RUBY_SO_NAME'] = orig_RUBY_SO_NAME
end
def test_initialize_platform