From: Toshi MARUYAMA Date: Mon, 14 Mar 2011 08:15:00 +0000 (+0000) Subject: scm: mercurial: prepare tests of named branch and tag in unit model test (#1981,... X-Git-Tag: 1.2.0~726 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7e96ea617c89cd8f70718ff209d5b13099b2c0f0;p=redmine.git scm: mercurial: prepare tests of named branch and tag in unit model test (#1981, #7246). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5117 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/unit/repository_mercurial_test.rb b/test/unit/repository_mercurial_test.rb index ae106d884..9a740ec1a 100644 --- a/test/unit/repository_mercurial_test.rb +++ b/test/unit/repository_mercurial_test.rb @@ -34,8 +34,14 @@ class RepositoryMercurialTest < ActiveSupport::TestCase ) assert @repository @char_1 = CHAR_1_HEX.dup + @tag_char_1 = "tag-#{CHAR_1_HEX}-00" + @branch_char_0 = "branch-#{CHAR_1_HEX}-00" + @branch_char_1 = "branch-#{CHAR_1_HEX}-01" if @char_1.respond_to?(:force_encoding) @char_1.force_encoding('UTF-8') + @tag_char_1.force_encoding('UTF-8') + @branch_char_0.force_encoding('UTF-8') + @branch_char_1.force_encoding('UTF-8') end end