Commit ce01f49c authored by Toshi MARUYAMA's avatar Toshi MARUYAMA Committed by Eric Davis

scm: fix unit tests fails in Ruby 1.9.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4992 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 15abee2e
......@@ -43,7 +43,7 @@ module Redmine
end
def scm_command_version
scm_version = scm_version_from_command_line
scm_version = scm_version_from_command_line.dup
if scm_version.respond_to?(:force_encoding)
scm_version.force_encoding('ASCII-8BIT')
end
......
......@@ -43,7 +43,7 @@ module Redmine
end
def scm_command_version
scm_version = scm_version_from_command_line
scm_version = scm_version_from_command_line.dup
if scm_version.respond_to?(:force_encoding)
scm_version.force_encoding('ASCII-8BIT')
end
......
......@@ -43,7 +43,7 @@ module Redmine
end
def darcs_binary_version
darcsversion = darcs_binary_version_from_command_line
darcsversion = darcs_binary_version_from_command_line.dup
if darcsversion.respond_to?(:force_encoding)
darcsversion.force_encoding('ASCII-8BIT')
end
......
......@@ -48,7 +48,7 @@ module Redmine
end
def scm_command_version
scm_version = scm_version_from_command_line
scm_version = scm_version_from_command_line.dup
if scm_version.respond_to?(:force_encoding)
scm_version.force_encoding('ASCII-8BIT')
end
......
......@@ -54,7 +54,7 @@ module Redmine
# The hg version is expressed either as a
# release number (eg 0.9.5 or 1.0) or as a revision
# id composed of 12 hexa characters.
theversion = hgversion_from_command_line
theversion = hgversion_from_command_line.dup
if theversion.respond_to?(:force_encoding)
theversion.force_encoding('ASCII-8BIT')
end
......
......@@ -44,7 +44,7 @@ module Redmine
end
def svn_binary_version
scm_version = scm_version_from_command_line
scm_version = scm_version_from_command_line.dup
if scm_version.respond_to?(:force_encoding)
scm_version.force_encoding('ASCII-8BIT')
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment