1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/rubygems/test_config.rb

23 lines
627 B
Ruby
Raw Normal View History

######################################################################
# 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.
######################################################################
require "test/rubygems/gemutilities"
require 'rubygems'
class TestConfig < RubyGemTestCase
def test_datadir
_, err = capture_io do
datadir = RbConfig::CONFIG['datadir']
assert_equal "#{datadir}/xyz", RbConfig.datadir('xyz')
end
assert_match(/deprecate/, err)
end
end