summaryrefslogtreecommitdiff
path: root/jni/ruby/test/rubygems/test_config.rb
blob: 7829e90dcf5036c9ed35948461cb2b6e252f1576 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require 'rubygems/test_case'
require 'rubygems'

class TestConfig < Gem::TestCase

  def test_datadir
    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