]> source.dussan.org Git - redmine.git/commitdiff
scm: mercurial: split test_entry_short_id to sub method (#14361)
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 2 Feb 2014 11:40:28 +0000 (11:40 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 2 Feb 2014 11:40:28 +0000 (11:40 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12767 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/repository_mercurial_test.rb

index 3f047c747c8c4a5677dbe186c72db63bca64c740..3ecea8aa2c546f478238584f73845bbe60c16904 100644 (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