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
cc210c58a4
commit
71aac2e3fe
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue