Sha256: 4018fd71de245a9fe1c5f83019cd2f261519bbf32f8b6699a80b280023b2a9c2

Contents?: true

Size: 551 Bytes

Versions: 12

Compression:

Stored size: 551 Bytes

Contents

# compare config/local.yml and config/local.defaults.yml
#

module LocalConf::Etest
  def test_local_conf
    LocalConf.x = "xx"
    assert_equal("xx", LocalConf.x)

    LocalConf.x = "yy"
    assert_equal("yy", LocalConf.x)

    assert_equal("dont_overwrite_me", LocalConf.dont_overwrite_me)
    assert_equal(true, LocalConf.dont_overwrite_me?)

    assert_equal false, LocalConf.adverts?

    assert_equal false, LocalConf.ads?
  end

  def test_w_missing_local_conf
    assert_raise(Errno::ENOENT) {  
      LocalConf.new "missing"
    }
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
vex-0.6.2 test/base-tests/local_conf.rb
vex-0.4.4 test/base-tests/local_conf.rb
vex-0.4.2 test/base-tests/local_conf.rb
vex-0.3.3 test/base-tests/local_conf.rb
vex-0.2.9 test/base-tests/local_conf.rb
vex-0.2.8 test/base-tests/local_conf.rb
vex-0.2.7 test/base-tests/local_conf.rb
vex-0.2.6 test/base-tests/local_conf.rb
vex-0.2.5 test/base-tests/local_conf.rb
vex-0.2.2 test/base-tests/local_conf.rb
vex-0.2.1 test/base-tests/local_conf.rb
vex-0.2 test/base-tests/local_conf.rb