OSDN Git Service

test/TC_league.rb failed with Ruby 1.8.7. This issue has been fixed.
authorDaigo Moriwaki <beatles@users.sourceforge.jp>
Sat, 7 Jan 2012 08:08:42 +0000 (17:08 +0900)
committerDaigo Moriwaki <daigo@debian.org>
Sat, 7 Jan 2012 08:08:42 +0000 (17:08 +0900)
changelog
test/TC_league.rb

index a128cc8..c243add 100644 (file)
--- a/changelog
+++ b/changelog
@@ -7,6 +7,8 @@
            been fixed.
          - test/TC_uchifuzume.rb did not run with Ruby 1.8.7. This issue
            has been fixed.
+         - test/TC_league.rb failed with Ruby 1.8.7. This issue has been
+           fixed.
 
 2012-01-06  Daigo Moriwaki <daigo at debian dot org>
 
index b633801..5b4f971 100644 (file)
@@ -40,7 +40,7 @@ class TestPersistent < Test::Unit::TestCase
 
     assert_equal(p.name, "gps_normal")
     assert_in_delta(p.rate, -1752.0, 0.1)
-    assert_equal(p.modified_at.to_s, "2008-05-08 23:50:54 +0900")
+    assert_equal(p.modified_at.ctime, "Thu May  8 23:50:54 2008")
     assert_equal(p.rating_group, 0)
     assert_in_delta(p.win, 3384.04877829976,  0.00001)
     assert_in_delta(p.loss, 906.949084230512, 0.00001)