scm: mercurial: fix unit model test fails if hg command is unavailable.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5649 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
6f4461830c
commit
c17a78c771
|
@ -25,6 +25,8 @@ class RepositoryMercurialTest < ActiveSupport::TestCase
|
|||
|
||||
CHAR_1_HEX = "\xc3\x9c"
|
||||
|
||||
if File.directory?(REPOSITORY_PATH)
|
||||
|
||||
def setup
|
||||
klass = Repository::Mercurial
|
||||
assert_equal "Mercurial", klass.scm_name
|
||||
|
@ -51,7 +53,6 @@ class RepositoryMercurialTest < ActiveSupport::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
if File.directory?(REPOSITORY_PATH)
|
||||
def test_fetch_changesets_from_scratch
|
||||
@repository.fetch_changesets
|
||||
@repository.reload
|
||||
|
|
Loading…
Reference in New Issue