scm: mercurial: code clean up unit app test.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4852 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-02-16 11:17:15 +00:00
parent 724afdf49d
commit 700577c533
1 changed files with 3 additions and 3 deletions

View File

@ -25,14 +25,14 @@ class RepositoryMercurialTest < ActiveSupport::TestCase
def setup
@project = Project.find(1)
assert @repository = Repository::Mercurial.create(:project => @project, :url => REPOSITORY_PATH)
@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
@repository.reload
assert_equal 17, @repository.changesets.count
assert_equal 25, @repository.changes.count
assert_equal "Initial import.\nThe repository contains 3 files.",