@@ -20,6 +20,14 begin | |||||
20 | # WINDOWS_PASS = Redmine::Platform.mswin? |
|
20 | # WINDOWS_PASS = Redmine::Platform.mswin? | |
21 | WINDOWS_PASS = false |
|
21 | WINDOWS_PASS = false | |
22 |
|
22 | |||
|
23 | ## Git, Mercurial and CVS path encodings are binary. | |||
|
24 | ## Subversion supports URL encoding for path. | |||
|
25 | ## Redmine Mercurial adapter and extension use URL encoding. | |||
|
26 | ## Git accepts only binary path in command line parameter. | |||
|
27 | ## So, there is no way to use binary command line parameter in JRuby. | |||
|
28 | JRUBY_SKIP = (RUBY_PLATFORM == 'java') | |||
|
29 | JRUBY_SKIP_STR = "TODO: This test fails in JRuby" | |||
|
30 | ||||
23 | if File.directory?(REPOSITORY_PATH) |
|
31 | if File.directory?(REPOSITORY_PATH) | |
24 | def setup |
|
32 | def setup | |
25 | adapter_class = Redmine::Scm::Adapters::GitAdapter |
|
33 | adapter_class = Redmine::Scm::Adapters::GitAdapter | |
@@ -262,6 +270,8 begin | |||||
262 | def test_latin_1_path |
|
270 | def test_latin_1_path | |
263 | if WINDOWS_PASS |
|
271 | if WINDOWS_PASS | |
264 | # |
|
272 | # | |
|
273 | elsif JRUBY_SKIP | |||
|
274 | puts JRUBY_SKIP_STR | |||
265 | else |
|
275 | else | |
266 | p2 = "latin-1-dir/test-#{@char_1}-2.txt" |
|
276 | p2 = "latin-1-dir/test-#{@char_1}-2.txt" | |
267 | ['4fc55c43bf3d3dc2efb66145365ddc17639ce81e', '4fc55c43bf3'].each do |r1| |
|
277 | ['4fc55c43bf3d3dc2efb66145365ddc17639ce81e', '4fc55c43bf3'].each do |r1| | |
@@ -322,6 +332,8 begin | |||||
322 | def test_entries_latin_1_dir |
|
332 | def test_entries_latin_1_dir | |
323 | if WINDOWS_PASS |
|
333 | if WINDOWS_PASS | |
324 | # |
|
334 | # | |
|
335 | elsif JRUBY_SKIP | |||
|
336 | puts JRUBY_SKIP_STR | |||
325 | else |
|
337 | else | |
326 | entries1 = @adapter.entries("latin-1-dir/test-#{@char_1}-subdir", |
|
338 | entries1 = @adapter.entries("latin-1-dir/test-#{@char_1}-subdir", | |
327 | '1ca7f5ed') |
|
339 | '1ca7f5ed') |
General Comments 0
You need to be logged in to leave comments.
Login now