]> source.dussan.org Git - redmine.git/commitdiff
scm: mercurial: prepare tests of named branch and tag in functional test (#1981,...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 14 Mar 2011 08:15:22 +0000 (08:15 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 14 Mar 2011 08:15:22 +0000 (08:15 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5118 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/repositories_mercurial_controller_test.rb

index a29c46ae0e8c686626962e744b1cba51034eda3d..58d0df6f3ca1263b435545e6a2ca24b4752a0ed3 100644 (file)
@@ -43,8 +43,14 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase
     assert @repository
     @diff_c_support = true
     @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