X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=test%2FTC_config.rb;h=00b94e65a1c3c2f8ec82af9b85a11760119c2ba8;hb=eb5079160801fd1eb26f0c28a54e216a3afc9501;hp=9dc3fd418b1108d5a0871fe2541985bab94c5c9b;hpb=69a5f0ddfc4262fbaf944491f3d9e24fd03ccb67;p=shogi-server%2Fshogi-server.git 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