diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-02-02 07:56:46 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-02-02 07:56:46 +0000 |
commit | 074984688e9eaedb35129399c4053f6651aebf7c (patch) | |
tree | f20540503284c9a211576e5f5d9cc3e9140e2670 /test/unit/repository_mercurial_test.rb | |
parent | 8c96db6e53e5d2e1f512eeefde6d90894afcbeb1 (diff) | |
download | redmine-074984688e9eaedb35129399c4053f6651aebf7c.tar.gz redmine-074984688e9eaedb35129399c4053f6651aebf7c.zip |
scm: mercurial: split latest_changesets default branch test to sub method (#14361)
git-svn-id: http://svn.redmine.org/redmine/trunk@12765 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, 7 insertions, 2 deletions
diff --git a/test/unit/repository_mercurial_test.rb b/test/unit/repository_mercurial_test.rb index 9d71aa294..37da53c1d 100644 --- a/test/unit/repository_mercurial_test.rb +++ b/test/unit/repository_mercurial_test.rb @@ -295,13 +295,18 @@ class RepositoryMercurialTest < ActiveSupport::TestCase assert_equal %w|27|, changesets.collect(&:revision) end + def assert_latest_changesets_default_branch + changesets = @repository.latest_changesets('', 'default') + assert_equal %w|31 28 24 6 4 3 2 1 0|, changesets.collect(&:revision) + end + private :assert_latest_changesets_default_branch + 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) + assert_latest_changesets_default_branch end def test_copied_files |