@@ -74,15 +74,14 class RepositoryGitTest < ActiveSupport::TestCase | |||
|
74 | 74 | assert_equal NUM_REV, @repository.changesets.count |
|
75 | 75 | assert_equal 39, @repository.changes.count |
|
76 | 76 | |
|
77 | commit = @repository.changesets.find(:first, :order => 'committed_on ASC') | |
|
77 | commit = @repository.changesets.find_by_revision("7234cb2750b63f47bff735edc50a1c0a433c2518") | |
|
78 | assert_equal "7234cb2750b63f47bff735edc50a1c0a433c2518", commit.scmid | |
|
78 | 79 | assert_equal "Initial import.\nThe repository contains 3 files.", commit.comments |
|
79 | 80 | assert_equal "jsmith <jsmith@foo.bar>", commit.committer |
|
80 | 81 | assert_equal User.find_by_login('jsmith'), commit.user |
|
81 | 82 | # TODO: add a commit with commit time <> author time to the test repository |
|
82 | 83 | assert_equal "2007-12-14 09:22:52".to_time, commit.committed_on |
|
83 | 84 | assert_equal "2007-12-14".to_date, commit.commit_date |
|
84 | assert_equal "7234cb2750b63f47bff735edc50a1c0a433c2518", commit.revision | |
|
85 | assert_equal "7234cb2750b63f47bff735edc50a1c0a433c2518", commit.scmid | |
|
86 | 85 | assert_equal 3, commit.changes.count |
|
87 | 86 | change = commit.changes.sort_by(&:path).first |
|
88 | 87 | assert_equal "README", change.path |
General Comments 0
You need to be logged in to leave comments.
Login now