@@ -33,6 +33,14 class RepositoryGitTest < ActiveSupport::TestCase | |||
|
33 | 33 | # WINDOWS_PASS = Redmine::Platform.mswin? |
|
34 | 34 | WINDOWS_PASS = false |
|
35 | 35 | |
|
36 | ## Git, Mercurial and CVS path encodings are binary. | |
|
37 | ## Subversion supports URL encoding for path. | |
|
38 | ## Redmine Mercurial adapter and extension use URL encoding. | |
|
39 | ## Git accepts only binary path in command line parameter. | |
|
40 | ## So, there is no way to use binary command line parameter in JRuby. | |
|
41 | JRUBY_SKIP = (RUBY_PLATFORM == 'java') | |
|
42 | JRUBY_SKIP_STR = "TODO: This test fails in JRuby" | |
|
43 | ||
|
36 | 44 | if File.directory?(REPOSITORY_PATH) |
|
37 | 45 | def setup |
|
38 | 46 | klass = Repository::Git |
@@ -308,6 +316,9 class RepositoryGitTest < ActiveSupport::TestCase | |||
|
308 | 316 | '61b685fbe55ab05b5ac68402d5720c1a6ac973d1', |
|
309 | 317 | ], changesets.collect(&:revision) |
|
310 | 318 | |
|
319 | if JRUBY_SKIP | |
|
320 | puts JRUBY_SKIP_STR | |
|
321 | else | |
|
311 | 322 | # latin-1 encoding path |
|
312 | 323 | changesets = @repository.latest_changesets( |
|
313 | 324 | "latin-1-dir/test-#{@char_1}-2.txt", '64f1f3e89') |
@@ -322,10 +333,13 class RepositoryGitTest < ActiveSupport::TestCase | |||
|
322 | 333 | '64f1f3e89ad1cb57976ff0ad99a107012ba3481d', |
|
323 | 334 | ], changesets.collect(&:revision) |
|
324 | 335 | end |
|
336 | end | |
|
325 | 337 | |
|
326 | 338 | def test_latest_changesets_latin_1_dir |
|
327 | 339 | if WINDOWS_PASS |
|
328 | 340 | # |
|
341 | elsif JRUBY_SKIP | |
|
342 | puts JRUBY_SKIP_STR | |
|
329 | 343 | else |
|
330 | 344 | @repository.fetch_changesets |
|
331 | 345 | @repository.reload |
General Comments 0
You need to be logged in to leave comments.
Login now