summaryrefslogtreecommitdiffstats
path: root/test/unit/repository_mercurial_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-02-02 07:57:02 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-02-02 07:57:02 +0000
commitb07c983740b88c9079f764349b760ba42cd979bd (patch)
tree6c92973d14b5017466f7e040b5bfd626fc020760 /test/unit/repository_mercurial_test.rb
parent074984688e9eaedb35129399c4053f6651aebf7c (diff)
downloadredmine-b07c983740b88c9079f764349b760ba42cd979bd.tar.gz
redmine-b07c983740b88c9079f764349b760ba42cd979bd.zip
scm: mercurial: split latest_changesets tag test to sub method (#14361)
git-svn-id: http://svn.redmine.org/redmine/trunk@12766 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/repository_mercurial_test.rb')
-rw-r--r--test/unit/repository_mercurial_test.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/unit/repository_mercurial_test.rb b/test/unit/repository_mercurial_test.rb
index 37da53c1d..3f047c747 100644
--- a/test/unit/repository_mercurial_test.rb
+++ b/test/unit/repository_mercurial_test.rb
@@ -247,14 +247,18 @@ class RepositoryMercurialTest < ActiveSupport::TestCase
assert_equal %w|12|, changesets.collect(&:revision)
end
+ def assert_latest_changesets_tag
+ changesets = @repository.latest_changesets('', 'tag_test.00')
+ assert_equal %w|5 4 3 2 1 0|, changesets.collect(&:revision)
+ end
+ private :assert_latest_changesets_tag
+
def test_latest_changesets_tag
assert_equal 0, @repository.changesets.count
@repository.fetch_changesets
@project.reload
assert_equal NUM_REV, @repository.changesets.count
-
- changesets = @repository.latest_changesets('', 'tag_test.00')
- assert_equal %w|5 4 3 2 1 0|, changesets.collect(&:revision)
+ assert_latest_changesets_tag
end
def test_latest_changesets_tag_with_path