@@ -61,8 +61,18 class RepositoryGitTest < ActiveSupport::TestCase | |||
|
61 | 61 | # Remove the 3 latest changesets |
|
62 | 62 | @repository.changesets.find(:all, :order => 'committed_on DESC', :limit => 3).each(&:destroy) |
|
63 | 63 | @repository.reload |
|
64 |
|
|
|
65 | ||
|
64 | cs1 = @repository.changesets | |
|
65 | assert_equal 13, cs1.count | |
|
66 | ||
|
67 | rev_a_commit = @repository.changesets.find(:first, :order => 'committed_on DESC') | |
|
68 | assert_equal '4f26664364207fa8b1af9f8722647ab2d4ac5d43', rev_a_commit.revision | |
|
69 | # Mon Jul 5 22:34:26 2010 +0200 | |
|
70 | rev_a_committed_on = Time.gm(2010, 7, 5, 20, 34, 26) | |
|
71 | assert_equal '4f26664364207fa8b1af9f8722647ab2d4ac5d43', rev_a_commit.scmid | |
|
72 | assert_equal rev_a_committed_on, rev_a_commit.committed_on | |
|
73 | latest_rev = @repository.latest_changeset | |
|
74 | assert_equal rev_a_committed_on, latest_rev.committed_on | |
|
75 | ||
|
66 | 76 | @repository.fetch_changesets |
|
67 | 77 | assert_equal 16, @repository.changesets.count |
|
68 | 78 | end |
General Comments 0
You need to be logged in to leave comments.
Login now