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
This commit is contained in:
Toshi MARUYAMA 2011-03-03 05:32:33 +00:00 committed by Eric Davis
parent 15abee2ee5
commit ce01f49ca7
6 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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