OSDN Git Service

Merge branch 'master' of git.sourceforge.jp:/gitroot/shogi-server/shogi-server
authorDaigo Moriwaki <daigo@debian.org>
Sat, 7 Jan 2012 03:41:42 +0000 (12:41 +0900)
committerDaigo Moriwaki <daigo@debian.org>
Sat, 7 Jan 2012 03:41:42 +0000 (12:41 +0900)
Conflicts:
changelog

changelog
test/TC_logger.rb

index 7e4e6e8..9ee5707 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.
+
 2012-01-01  Daigo Moriwaki <daigo at debian dot org>
 
        * [shogi-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