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.27 test/rbbt/util/test_config.rb
rbbt-util-5.26.26 test/rbbt/util/test_config.rb
rbbt-util-5.26.25 test/rbbt/util/test_config.rb
rbbt-util-5.26.24 test/rbbt/util/test_config.rb
rbbt-util-5.26.23 test/rbbt/util/test_config.rb
rbbt-util-5.26.22 test/rbbt/util/test_config.rb
rbbt-util-5.26.21 test/rbbt/util/test_config.rb
rbbt-util-5.26.20 test/rbbt/util/test_config.rb
rbbt-util-5.26.19 test/rbbt/util/test_config.rb
rbbt-util-5.26.18 test/rbbt/util/test_config.rb
rbbt-util-5.26.17 test/rbbt/util/test_config.rb
rbbt-util-5.26.16 test/rbbt/util/test_config.rb
rbbt-util-5.26.15 test/rbbt/util/test_config.rb
rbbt-util-5.26.14 test/rbbt/util/test_config.rb
rbbt-util-5.26.13 test/rbbt/util/test_config.rb
rbbt-util-5.26.12 test/rbbt/util/test_config.rb
rbbt-util-5.26.11 test/rbbt/util/test_config.rb
rbbt-util-5.26.10 test/rbbt/util/test_config.rb
rbbt-util-5.26.9 test/rbbt/util/test_config.rb
rbbt-util-5.26.8 test/rbbt/util/test_config.rb