diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-04-11 17:58:04 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-04-11 17:58:04 +0000 |
commit | c52f928f35d9ea6ef2de1140a41fe91511e91775 (patch) | |
tree | 5a8060224b62a22a2a9005ed6730097243649cc9 /test/unit/repository_git_test.rb | |
parent | aa0d01b3d9f5ae5634eda73e1becd75cc4668f3e (diff) | |
download | redmine-c52f928f35d9ea6ef2de1140a41fe91511e91775.tar.gz redmine-c52f928f35d9ea6ef2de1140a41fe91511e91775.zip |
Fixed: #setup triggers a failure even if git tests should not run.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5417 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/repository_git_test.rb')
-rw-r--r-- | test/unit/repository_git_test.rb | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/test/unit/repository_git_test.rb b/test/unit/repository_git_test.rb index aac93d645..57594d277 100644 --- a/test/unit/repository_git_test.rb +++ b/test/unit/repository_git_test.rb @@ -33,27 +33,27 @@ class RepositoryGitTest < ActiveSupport::TestCase # WINDOWS_PASS = Redmine::Platform.mswin? WINDOWS_PASS = false - def setup - klass = Repository::Git - assert_equal "Git", klass.scm_name - assert klass.scm_adapter_class - assert_not_equal "", klass.scm_command - assert_equal true, klass.scm_available - - @project = Project.find(3) - @repository = Repository::Git.create( - :project => @project, - :url => REPOSITORY_PATH, - :path_encoding => 'ISO-8859-1' - ) - assert @repository - @char_1 = CHAR_1_HEX.dup - if @char_1.respond_to?(:force_encoding) - @char_1.force_encoding('UTF-8') - end - end - if File.directory?(REPOSITORY_PATH) + def setup + klass = Repository::Git + assert_equal "Git", klass.scm_name + assert klass.scm_adapter_class + assert_not_equal "", klass.scm_command + assert_equal true, klass.scm_available + + @project = Project.find(3) + @repository = Repository::Git.create( + :project => @project, + :url => REPOSITORY_PATH, + :path_encoding => 'ISO-8859-1' + ) + assert @repository + @char_1 = CHAR_1_HEX.dup + if @char_1.respond_to?(:force_encoding) + @char_1.force_encoding('UTF-8') + end + end + def test_fetch_changesets_from_scratch @repository.fetch_changesets @repository.reload |