OSDN Git Service

Fixed timestamp format for Ruby 1.9.3.
authorDaigo Moriwaki <beatles@users.sourceforge.jp>
Sat, 3 Dec 2011 06:51:57 +0000 (15:51 +0900)
committerDaigo Moriwaki <daigo@debian.org>
Sat, 3 Dec 2011 06:51:57 +0000 (15:51 +0900)
test/TC_league.rb

index a50b034..b633801 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, "Thu May 08 23:50:54 +0900 2008")
+    assert_equal(p.modified_at.to_s, "2008-05-08 23:50:54 +0900")
     assert_equal(p.rating_group, 0)
     assert_in_delta(p.win, 3384.04877829976,  0.00001)
     assert_in_delta(p.loss, 906.949084230512, 0.00001)