Sha256: 0cf5caf9f48f930f856571845da132b93ca0bbaa39b4cb0998d4a8f191a4fe51

Contents?: true

Size: 450 Bytes

Versions: 228

Compression:

Stored size: 450 Bytes

Contents

require File.join(File.expand_path(File.dirname(__FILE__)), '../..', 'test_helper.rb')
require 'rbbt/util/config'

class TestConfig < Test::Unit::TestCase
  def setup
    Rbbt::Config.set({:cpus => 30}, :test_config, :test)
    Rbbt::Config.set(:cpus , 5, "slow::2", :test)
  end

  def test_simple
    assert_equal 30, Rbbt::Config.get(:cpus, :test_config)
  end

  def test_prio
    assert_equal 5, Rbbt::Config.get(:cpus, :slow, :test)
  end
end

Version data entries

228 entries across 228 versions & 1 rubygems

Version Path
rbbt-util-5.26.141 test/rbbt/util/test_config.rb
rbbt-util-5.26.140 test/rbbt/util/test_config.rb
rbbt-util-5.26.139 test/rbbt/util/test_config.rb
rbbt-util-5.26.138 test/rbbt/util/test_config.rb
rbbt-util-5.26.137 test/rbbt/util/test_config.rb
rbbt-util-5.26.136 test/rbbt/util/test_config.rb
rbbt-util-5.26.135 test/rbbt/util/test_config.rb
rbbt-util-5.26.134 test/rbbt/util/test_config.rb
rbbt-util-5.26.133 test/rbbt/util/test_config.rb
rbbt-util-5.26.132 test/rbbt/util/test_config.rb
rbbt-util-5.26.131 test/rbbt/util/test_config.rb
rbbt-util-5.26.130 test/rbbt/util/test_config.rb
rbbt-util-5.26.129 test/rbbt/util/test_config.rb
rbbt-util-5.26.128 test/rbbt/util/test_config.rb
rbbt-util-5.26.126 test/rbbt/util/test_config.rb
rbbt-util-5.26.125 test/rbbt/util/test_config.rb
rbbt-util-5.26.123 test/rbbt/util/test_config.rb
rbbt-util-5.26.122 test/rbbt/util/test_config.rb
rbbt-util-5.26.121 test/rbbt/util/test_config.rb
rbbt-util-5.26.120 test/rbbt/util/test_config.rb