diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-02-02 11:40:28 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-02-02 11:40:28 +0000 |
commit | 1f2a520a4614e5ed614e0083b80c02d9522be6f3 (patch) | |
tree | 66504cde43e56628bb676e3ee77a94bb5ddecb41 /test/unit/repository_mercurial_test.rb | |
parent | b07c983740b88c9079f764349b760ba42cd979bd (diff) | |
download | redmine-1f2a520a4614e5ed614e0083b80c02d9522be6f3.tar.gz redmine-1f2a520a4614e5ed614e0083b80c02d9522be6f3.zip |
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
Diffstat (limited to 'test/unit/repository_mercurial_test.rb')
-rw-r--r-- | test/unit/repository_mercurial_test.rb | 7 |
1 files changed, 6 insertions, 1 deletions
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 |