OSDN Git Service

[shogi-server] test/TC_logger.rb depeneded on a specific directory where it was runni...
authorDaigo Moriwaki <daigo@debian.org>
Fri, 6 Jan 2012 12:41:21 +0000 (21:41 +0900)
committerDaigo Moriwaki <daigo@debian.org>
Fri, 6 Jan 2012 12:41:21 +0000 (21:41 +0900)
changelog
test/TC_logger.rb

index 430ca72..0175279 100644 (file)
--- a/changelog
+++ b/changelog
@@ -1,3 +1,9 @@
+2012-01-06  Daigo Moriwaki <daigo at debian dot org>
+
+       * [shogi-server]
+         - test/TC_logger.rb depeneded on a specific directory where it was
+           running on. This issues has been fixed.
+
 2011-12-18  Daigo Moriwaki <daigo at debian dot org>
 
        * [sohgi-server]
index 52c2258..698a33d 100644 (file)
@@ -74,8 +74,8 @@ class TestLogger < Test::Unit::TestCase
     @logger.info("test_shift_log_period")
     now =  Time.mktime(2010, 7, 25, 23, 59, 59)
     @logger.logdev.shift_log_period(now)
-    assert_equal [["/home/daigo/rubyprojects/shogi-server/test/TC_logger_test.log",
-        "/home/daigo/rubyprojects/shogi-server/test/2010/07/24/TC_logger_test.log"]], 
+    assert_equal [[File.join($topdir, "TC_logger_test.log"),
+                   File.join($topdir, "2010", "07", "24", "TC_logger_test.log")]],
         @logger.logdev.result_rename_file
   end