From e8df3d50e8d08a5944cd6d899b1348ba623ecedb Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 14 Feb 2014 05:05:24 +0000 Subject: [PATCH] Rails4: fix time related git adapter test failures 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb index 205e82139..a140d25dc 100644 --- a/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb @@ -392,7 +392,7 @@ begin assert_equal "4a07fe31bffcf2888791f3e6cbc9c4545cefe3e8", last_rev.scmid assert_equal "4a07fe31bffcf2888791f3e6cbc9c4545cefe3e8", last_rev.identifier assert_equal "Adam Soltys ", 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} ", 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 -- 2.39.5