X-Git-Url: http://git.sourceforge.jp/view?p=shogi-server%2Fshogi-server.git;a=blobdiff_plain;f=test%2FTC_config.rb;h=00b94e65a1c3c2f8ec82af9b85a11760119c2ba8;hp=9dc3fd418b1108d5a0871fe2541985bab94c5c9b;hb=823b3c5e044e655589d6f1c5d7d35c375d1993c9;hpb=55905536e62325f88dc770878bd7fa712f0f98aa diff --git a/test/TC_config.rb b/test/TC_config.rb index 9dc3fd4..00b94e6 100644 --- a/test/TC_config.rb +++ b/test/TC_config.rb @@ -65,19 +65,9 @@ class TestConfig < Test::Unit::TestCase end def test_top_dir2 - topdir_orig = $topdir - $topdir = "/should_be_replaced" + assert !File.exist?(File.join("/", "tmp", ShogiServer::Config::FILENAME)) conf = ShogiServer::Config.new({:topdir => "/tmp"}) assert_equal "/tmp", conf[:topdir] - $topdir = topdir_orig - end - - def test_top_dir3 - topdir_orig = $topdir - $topdir = "/should_be_replaced" - conf = ShogiServer::Config.new({"topdir" => "/tmp"}) - assert_equal "/tmp", conf[:topdir] - $topdir = topdir_orig end def test_braces1