scm: mercurial: code clean up unit model test.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4991 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-03-03 03:35:13 +00:00
parent bc09628249
commit cc210c58a4
1 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ class RepositoryMercurialTest < ActiveSupport::TestCase
@repository = Repository::Mercurial.create(:project => @project, :url => REPOSITORY_PATH)
assert @repository
end
if File.directory?(REPOSITORY_PATH)
def test_fetch_changesets_from_scratch
@repository.fetch_changesets
@ -38,7 +38,7 @@ class RepositoryMercurialTest < ActiveSupport::TestCase
assert_equal "Initial import.\nThe repository contains 3 files.",
@repository.changesets.find_by_revision('0').comments
end
def test_fetch_changesets_incremental
@repository.fetch_changesets
# Remove changesets with revision > 2
@ -49,7 +49,7 @@ class RepositoryMercurialTest < ActiveSupport::TestCase
@repository.fetch_changesets
assert_equal 17, @repository.changesets.count
end
def test_isodatesec
# Template keyword 'isodatesec' supported in Mercurial 1.0 and higher
if @repository.scm.class.client_version_above?([1, 0])