@@ -85,11 +85,7 class RepositoryMercurialTest < ActiveSupport::TestCase | |||
|
85 | 85 | assert_kind_of Redmine::Scm::Adapters::Entries, entries |
|
86 | 86 | end |
|
87 | 87 | |
|
88 |
def |
|
|
89 | assert_equal 0, @repository.changesets.count | |
|
90 | @repository.fetch_changesets | |
|
91 | @project.reload | |
|
92 | assert_equal NUM_REV, @repository.changesets.count | |
|
88 | def assert_entries | |
|
93 | 89 | [2, '400bb8672109', '400', 400].each do |r| |
|
94 | 90 | entries1 = @repository.entries(nil, r) |
|
95 | 91 | assert entries1 |
@@ -102,6 +98,15 class RepositoryMercurialTest < ActiveSupport::TestCase | |||
|
102 | 98 | assert_equal '9d5b5b004199', readme.changeset.scmid |
|
103 | 99 | end |
|
104 | 100 | end |
|
101 | private :assert_entries | |
|
102 | ||
|
103 | def test_entries_short_id | |
|
104 | assert_equal 0, @repository.changesets.count | |
|
105 | @repository.fetch_changesets | |
|
106 | @project.reload | |
|
107 | assert_equal NUM_REV, @repository.changesets.count | |
|
108 | assert_entries | |
|
109 | end | |
|
105 | 110 | |
|
106 | 111 | def test_entry_on_tip |
|
107 | 112 | entry = @repository.entry |
General Comments 0
You need to be logged in to leave comments.
Login now