Commit c218d91d authored by marutosijp's avatar marutosijp

Rails4: fix time related git unit test failure

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 65ad77af
......@@ -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, 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment