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
This commit is contained in:
parent
aa0d01b3d9
commit
c52f928f35
@ -33,6 +33,7 @@ class RepositoryGitTest < ActiveSupport::TestCase
|
|||||||
# WINDOWS_PASS = Redmine::Platform.mswin?
|
# WINDOWS_PASS = Redmine::Platform.mswin?
|
||||||
WINDOWS_PASS = false
|
WINDOWS_PASS = false
|
||||||
|
|
||||||
|
if File.directory?(REPOSITORY_PATH)
|
||||||
def setup
|
def setup
|
||||||
klass = Repository::Git
|
klass = Repository::Git
|
||||||
assert_equal "Git", klass.scm_name
|
assert_equal "Git", klass.scm_name
|
||||||
@ -53,7 +54,6 @@ class RepositoryGitTest < ActiveSupport::TestCase
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if File.directory?(REPOSITORY_PATH)
|
|
||||||
def test_fetch_changesets_from_scratch
|
def test_fetch_changesets_from_scratch
|
||||||
@repository.fetch_changesets
|
@repository.fetch_changesets
|
||||||
@repository.reload
|
@repository.reload
|
||||||
|
Loading…
x
Reference in New Issue
Block a user