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.48 test/rbbt/util/test_config.rb
rbbt-util-5.26.47 test/rbbt/util/test_config.rb
rbbt-util-5.26.46 test/rbbt/util/test_config.rb
rbbt-util-5.26.45 test/rbbt/util/test_config.rb
rbbt-util-5.26.44 test/rbbt/util/test_config.rb
rbbt-util-5.26.43 test/rbbt/util/test_config.rb
rbbt-util-5.26.42 test/rbbt/util/test_config.rb
rbbt-util-5.26.41 test/rbbt/util/test_config.rb
rbbt-util-5.26.40 test/rbbt/util/test_config.rb
rbbt-util-5.26.39 test/rbbt/util/test_config.rb
rbbt-util-5.26.37 test/rbbt/util/test_config.rb
rbbt-util-5.26.36 test/rbbt/util/test_config.rb
rbbt-util-5.26.35 test/rbbt/util/test_config.rb
rbbt-util-5.26.34 test/rbbt/util/test_config.rb
rbbt-util-5.26.33 test/rbbt/util/test_config.rb
rbbt-util-5.26.32 test/rbbt/util/test_config.rb
rbbt-util-5.26.31 test/rbbt/util/test_config.rb
rbbt-util-5.26.30 test/rbbt/util/test_config.rb
rbbt-util-5.26.29 test/rbbt/util/test_config.rb
rbbt-util-5.26.28 test/rbbt/util/test_config.rb