Remove code related to JRuby and unsupported Ruby versions (#29441).

Patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@18294 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2019-06-20 13:47:00 +00:00
parent cbc537de0a
commit 62e13f7913
3 changed files with 0 additions and 30 deletions

View File

@@ -30,14 +30,6 @@ class RepositoriesGitControllerTest < Redmine::RepositoryControllerTest
PRJ_ID = 3
NUM_REV = 28
## Git, Mercurial and CVS path encodings are binary.
## Subversion supports URL encoding for path.
## Redmine Mercurial adapter and extension use URL encoding.
## Git accepts only binary path in command line parameter.
## So, there is no way to use binary command line parameter in JRuby.
JRUBY_SKIP = (RUBY_PLATFORM == 'java')
JRUBY_SKIP_STR = "TODO: This test fails in JRuby"
def setup
super
@ruby19_non_utf8_pass = Encoding.default_external.to_s != 'UTF-8'
@@ -259,8 +251,6 @@ class RepositoriesGitControllerTest < Redmine::RepositoryControllerTest
puts_ruby19_non_utf8_pass()
elsif WINDOWS_PASS
puts WINDOWS_SKIP_STR
elsif JRUBY_SKIP
puts JRUBY_SKIP_STR
else
with_settings :repositories_encodings => 'UTF-8,ISO-8859-1' do
['57ca437c', '57ca437c0acbbcb749821fdf3726a1367056d364'].each do |r1|
@@ -558,8 +548,6 @@ class RepositoriesGitControllerTest < Redmine::RepositoryControllerTest
puts_ruby19_non_utf8_pass()
elsif WINDOWS_PASS
puts WINDOWS_SKIP_STR
elsif JRUBY_SKIP
puts JRUBY_SKIP_STR
else
with_settings :repositories_encodings => 'UTF-8,ISO-8859-1' do
['57ca437c', '57ca437c0acbbcb749821fdf3726a1367056d364'].each do |r1|