Sha256: aa218d51927edea3af93707c61fecd1b1d3df67d022341b44e24cc4507c6f85a

Contents?: true

Size: 556 Bytes

Versions: 3

Compression:

Stored size: 556 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/test_helper')
require 'rbbt'
require 'rbbt/util/pkg_data'
require 'rbbt/util/pkg_config'
require 'rbbt/util/data_module'
require 'yaml'

module A
  extend PKGConfig
  extend PKGData

  self.load_cfg(%w(datadir), {"datadir" => "/tmp/A"}.to_yaml)
end

module B
  extend PKGConfig
  extend PKGData

  self.load_cfg(%w(datadir), {"datadir" => "/tmp/B"}.to_yaml)
end

class TestPKG < Test::Unit::TestCase
  def test_datadir
    assert_equal "/tmp/A", A.datadir
    assert_equal "/tmp/B", B.datadir
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rbbt-util-2.1.0 test/test_pkg.rb
rbbt-util-2.0.1 test/test_pkg.rb
rbbt-util-1.2.1 test/test_pkg.rb