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