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
This commit is contained in:
Toshi MARUYAMA 2014-02-02 11:40:28 +00:00
parent b07c983740
commit 1f2a520a46
1 changed files with 6 additions and 1 deletions

View File

@ -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