]> source.dussan.org Git - redmine.git/commitdiff
Rails4: fix time related git adapter test failures
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 14 Feb 2014 05:05:24 +0000 (05:05 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 14 Feb 2014 05:05:24 +0000 (05:05 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12882 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/lib/redmine/scm/adapters/git_adapter_test.rb

index 205e82139899d386946048538735f664a28424e3..a140d25dca0a3499d588d03ac09d99ae12042a52 100644 (file)
@@ -392,7 +392,7 @@ begin
         assert_equal "4a07fe31bffcf2888791f3e6cbc9c4545cefe3e8", last_rev.scmid
         assert_equal "4a07fe31bffcf2888791f3e6cbc9c4545cefe3e8", last_rev.identifier
         assert_equal "Adam Soltys <asoltys@gmail.com>", last_rev.author
-        assert_equal "2009-06-24 05:27:38".to_time, last_rev.time
+        assert_equal Time.gm(2009, 6, 24, 5, 27, 38), last_rev.time
       end
 
       def test_last_rev_with_spaces_in_filename
@@ -403,7 +403,7 @@ begin
         assert_equal "ed5bb786bbda2dee66a2d50faf51429dbc043a7b", last_rev.identifier
         assert_equal "#{@str_felix_hex} <felix@fachschaften.org>",
                        last_rev.author
-        assert_equal "2010-09-18 19:59:46".to_time, last_rev.time
+        assert_equal Time.gm(2010, 9, 18, 19, 59, 46), last_rev.time
       end
 
       def test_latin_1_path