summaryrefslogtreecommitdiffstats
path: root/test/functional/repositories_mercurial_controller_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-03-14 08:15:22 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-03-14 08:15:22 +0000
commitf3822e18bd6006b01a21dbb9947c6da85ae604a2 (patch)
tree944f02ac0a8e519a51f1e7f3cc654e6289045eff /test/functional/repositories_mercurial_controller_test.rb
parent7e96ea617c89cd8f70718ff209d5b13099b2c0f0 (diff)
downloadredmine-f3822e18bd6006b01a21dbb9947c6da85ae604a2.tar.gz
redmine-f3822e18bd6006b01a21dbb9947c6da85ae604a2.zip
scm: mercurial: prepare tests of named branch and tag in functional test (#1981, #7246).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5118 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/repositories_mercurial_controller_test.rb')
-rw-r--r--test/functional/repositories_mercurial_controller_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/repositories_mercurial_controller_test.rb b/test/functional/repositories_mercurial_controller_test.rb
index a29c46ae0..58d0df6f3 100644
--- a/test/functional/repositories_mercurial_controller_test.rb
+++ b/test/functional/repositories_mercurial_controller_test.rb
@@ -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