From 50ab5ec1b6533de4f065125999a4ed3d3e81485c Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 15 Feb 2014 23:13:44 +0000 Subject: [PATCH] Rails4: fix time related git unit test failure git-svn-id: http://svn.redmine.org/redmine/trunk@12900 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/repository_git_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/repository_git_test.rb b/test/unit/repository_git_test.rb index 4382f61f0..c7836fe06 100644 --- a/test/unit/repository_git_test.rb +++ b/test/unit/repository_git_test.rb @@ -118,7 +118,7 @@ class RepositoryGitTest < ActiveSupport::TestCase assert_equal "jsmith ", commit.committer assert_equal User.find_by_login('jsmith'), commit.user # TODO: add a commit with commit time <> author time to the test repository - assert_equal "2007-12-14 09:22:52".to_time, commit.committed_on + assert_equal Time.gm(2007, 12, 14, 9, 22, 52), commit.committed_on assert_equal "2007-12-14".to_date, commit.commit_date assert_equal 3, commit.filechanges.count change = commit.filechanges.sort_by(&:path).first