aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_config.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/test_config.rb')
-rw-r--r--test/rubygems/test_config.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/test/rubygems/test_config.rb b/test/rubygems/test_config.rb
index fae1a6ff54..7829e90dcf 100644
--- a/test/rubygems/test_config.rb
+++ b/test/rubygems/test_config.rb
@@ -4,12 +4,10 @@ require 'rubygems'
class TestConfig < Gem::TestCase
def test_datadir
- _, err = capture_io do
- datadir = RbConfig::CONFIG['datadir']
- assert_equal "#{datadir}/xyz", RbConfig.datadir('xyz')
- end
-
- assert_match(/deprecate/, err)
+ util_make_gems
+ spec = Gem::Specification.find_by_name("a")
+ spec.activate
+ assert_equal "#{spec.full_gem_path}/data/a", Gem.datadir('a')
end
end