diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-02-02 06:34:31 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-02-02 06:34:31 +0000 |
commit | 79e73095e5a4e3b8dd2f3133c154bcfff4754cde (patch) | |
tree | 0ccdab0c3f0217d423af5a4585ae694835035045 /test/unit/repository_mercurial_test.rb | |
parent | 3698dd26cf27bfc8d180502616fb91787454064a (diff) | |
download | redmine-79e73095e5a4e3b8dd2f3133c154bcfff4754cde.tar.gz redmine-79e73095e5a4e3b8dd2f3133c154bcfff4754cde.zip |
scm: mercurial: add latest_changesets "default" branch test (#14361)
git-svn-id: http://svn.redmine.org/redmine/trunk@12763 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/repository_mercurial_test.rb')
-rw-r--r-- | test/unit/repository_mercurial_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/unit/repository_mercurial_test.rb b/test/unit/repository_mercurial_test.rb index 1d5a1e431..3028bc061 100644 --- a/test/unit/repository_mercurial_test.rb +++ b/test/unit/repository_mercurial_test.rb @@ -288,6 +288,15 @@ class RepositoryMercurialTest < ActiveSupport::TestCase assert_equal %w|27|, changesets.collect(&:revision) end + def test_latest_changesets_default_branch + assert_equal 0, @repository.changesets.count + @repository.fetch_changesets + @project.reload + assert_equal NUM_REV, @repository.changesets.count + changesets = @repository.latest_changesets('', 'default') + assert_equal %w|31 28 24 6 4 3 2 1 0|, changesets.collect(&:revision) + end + def test_copied_files assert_equal 0, @repository.changesets.count @repository.fetch_changesets |