summaryrefslogtreecommitdiffstats
path: root/test/unit/repository_mercurial_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-02-16 11:17:15 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-02-16 11:17:15 +0000
commit700577c53399ca2e757a498a3dc85d74fedf9dcd (patch)
tree84eb511e68843f79e154f436dbed8a6b8d061433 /test/unit/repository_mercurial_test.rb
parent724afdf49d0c1875af06ad5137608a58446882c2 (diff)
downloadredmine-700577c53399ca2e757a498a3dc85d74fedf9dcd.tar.gz
redmine-700577c53399ca2e757a498a3dc85d74fedf9dcd.zip
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
Diffstat (limited to 'test/unit/repository_mercurial_test.rb')
-rw-r--r--test/unit/repository_mercurial_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/repository_mercurial_test.rb b/test/unit/repository_mercurial_test.rb
index 7523cfe9d..1563820c6 100644
--- a/test/unit/repository_mercurial_test.rb
+++ b/test/unit/repository_mercurial_test.rb
@@ -22,17 +22,17 @@ class RepositoryMercurialTest < ActiveSupport::TestCase
# No '..' in the repository path
REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + '/tmp/test/mercurial_repository'
-
+
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.",