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:
parent
15abee2ee5
commit
ce01f49ca7
|
@ -43,7 +43,7 @@ module Redmine
|
||||||
end
|
end
|
||||||
|
|
||||||
def scm_command_version
|
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)
|
if scm_version.respond_to?(:force_encoding)
|
||||||
scm_version.force_encoding('ASCII-8BIT')
|
scm_version.force_encoding('ASCII-8BIT')
|
||||||
end
|
end
|
||||||
|
|
|
@ -43,7 +43,7 @@ module Redmine
|
||||||
end
|
end
|
||||||
|
|
||||||
def scm_command_version
|
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)
|
if scm_version.respond_to?(:force_encoding)
|
||||||
scm_version.force_encoding('ASCII-8BIT')
|
scm_version.force_encoding('ASCII-8BIT')
|
||||||
end
|
end
|
||||||
|
|
|
@ -43,7 +43,7 @@ module Redmine
|
||||||
end
|
end
|
||||||
|
|
||||||
def darcs_binary_version
|
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)
|
if darcsversion.respond_to?(:force_encoding)
|
||||||
darcsversion.force_encoding('ASCII-8BIT')
|
darcsversion.force_encoding('ASCII-8BIT')
|
||||||
end
|
end
|
||||||
|
|
|
@ -48,7 +48,7 @@ module Redmine
|
||||||
end
|
end
|
||||||
|
|
||||||
def scm_command_version
|
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)
|
if scm_version.respond_to?(:force_encoding)
|
||||||
scm_version.force_encoding('ASCII-8BIT')
|
scm_version.force_encoding('ASCII-8BIT')
|
||||||
end
|
end
|
||||||
|
|
|
@ -54,7 +54,7 @@ module Redmine
|
||||||
# The hg version is expressed either as a
|
# The hg version is expressed either as a
|
||||||
# release number (eg 0.9.5 or 1.0) or as a revision
|
# release number (eg 0.9.5 or 1.0) or as a revision
|
||||||
# id composed of 12 hexa characters.
|
# id composed of 12 hexa characters.
|
||||||
theversion = hgversion_from_command_line
|
theversion = hgversion_from_command_line.dup
|
||||||
if theversion.respond_to?(:force_encoding)
|
if theversion.respond_to?(:force_encoding)
|
||||||
theversion.force_encoding('ASCII-8BIT')
|
theversion.force_encoding('ASCII-8BIT')
|
||||||
end
|
end
|
||||||
|
|
|
@ -44,7 +44,7 @@ module Redmine
|
||||||
end
|
end
|
||||||
|
|
||||||
def svn_binary_version
|
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)
|
if scm_version.respond_to?(:force_encoding)
|
||||||
scm_version.force_encoding('ASCII-8BIT')
|
scm_version.force_encoding('ASCII-8BIT')
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue