2011-01-19 00:08:49 +00:00
|
|
|
######################################################################
|
|
|
|
# This file is imported from the rubygems project.
|
|
|
|
# DO NOT make modifications in this repo. They _will_ be reverted!
|
|
|
|
# File a patch instead and assign it to Ryan Davis or Eric Hodel.
|
|
|
|
######################################################################
|
|
|
|
|
2011-01-28 23:46:47 +00:00
|
|
|
require 'rubygems/test_case'
|
2007-11-10 07:48:56 +00:00
|
|
|
require 'rubygems'
|
|
|
|
|
2011-01-28 23:46:47 +00:00
|
|
|
class TestConfig < Gem::TestCase
|
2007-11-10 07:48:56 +00:00
|
|
|
|
|
|
|
def test_datadir
|
2011-01-19 00:08:49 +00:00
|
|
|
_, err = capture_io do
|
|
|
|
datadir = RbConfig::CONFIG['datadir']
|
|
|
|
assert_equal "#{datadir}/xyz", RbConfig.datadir('xyz')
|
|
|
|
end
|
|
|
|
|
|
|
|
assert_match(/deprecate/, err)
|
2007-11-10 07:48:56 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|