From 1f2a520a4614e5ed614e0083b80c02d9522be6f3 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sun, 2 Feb 2014 11:40:28 +0000 Subject: [PATCH] scm: mercurial: split test_entry_short_id to sub method (#14361) git-svn-id: http://svn.redmine.org/redmine/trunk@12767 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/repository_mercurial_test.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/unit/repository_mercurial_test.rb b/test/unit/repository_mercurial_test.rb index 3f047c747..3ecea8aa2 100644 --- a/test/unit/repository_mercurial_test.rb +++ b/test/unit/repository_mercurial_test.rb @@ -110,7 +110,7 @@ class RepositoryMercurialTest < ActiveSupport::TestCase assert_equal 'dir', entry.kind end - def test_entry_short_id + def assert_entry ["README", "/README"].each do |path| ["0", "0885933ad4f6", "0885933ad4f68d77c2649cd11f8311276e7ef7ce"].each do |rev| entry = @repository.entry(path, rev) @@ -140,6 +140,11 @@ class RepositoryMercurialTest < ActiveSupport::TestCase end end end + private :assert_entry + + def test_entry_short_id + assert_entry + end def test_fetch_changesets_from_scratch assert_equal 0, @repository.changesets.count -- 2.39.5