@@ -43,25 +43,27 class RepositoryGitTest < ActiveSupport::TestCase | |||
|
43 | 43 | JRUBY_SKIP = (RUBY_PLATFORM == 'java') |
|
44 | 44 | JRUBY_SKIP_STR = "TODO: This test fails in JRuby" |
|
45 | 45 | |
|
46 | def setup | |
|
47 | @project = Project.find(3) | |
|
48 | @repository = Repository::Git.create( | |
|
49 | :project => @project, | |
|
50 | :url => REPOSITORY_PATH, | |
|
51 | :path_encoding => 'ISO-8859-1' | |
|
52 | ) | |
|
53 | assert @repository | |
|
54 | @char_1 = CHAR_1_HEX.dup | |
|
55 | if @char_1.respond_to?(:force_encoding) | |
|
56 | @char_1.force_encoding('UTF-8') | |
|
57 | end | |
|
58 | end | |
|
59 | ||
|
46 | 60 | if File.directory?(REPOSITORY_PATH) |
|
47 | def setup | |
|
61 | def test_scm_available | |
|
48 | 62 | klass = Repository::Git |
|
49 | 63 | assert_equal "Git", klass.scm_name |
|
50 | 64 | assert klass.scm_adapter_class |
|
51 | 65 | assert_not_equal "", klass.scm_command |
|
52 | 66 | assert_equal true, klass.scm_available |
|
53 | ||
|
54 | @project = Project.find(3) | |
|
55 | @repository = Repository::Git.create( | |
|
56 | :project => @project, | |
|
57 | :url => REPOSITORY_PATH, | |
|
58 | :path_encoding => 'ISO-8859-1' | |
|
59 | ) | |
|
60 | assert @repository | |
|
61 | @char_1 = CHAR_1_HEX.dup | |
|
62 | if @char_1.respond_to?(:force_encoding) | |
|
63 | @char_1.force_encoding('UTF-8') | |
|
64 | end | |
|
65 | 67 | end |
|
66 | 68 | |
|
67 | 69 | def test_fetch_changesets_from_scratch |
General Comments 0
You need to be logged in to leave comments.
Login now