]> source.dussan.org Git - redmine.git/commitdiff
scm: mercurial: update test repository for following issues and fix tests.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 5 Jan 2011 15:02:47 +0000 (15:02 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 5 Jan 2011 15:02:47 +0000 (15:02 +0000)
* copied file (#7064)
* branch, tag (#1981)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4634 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/fixtures/repositories/mercurial_repository.tar.gz
test/functional/repositories_mercurial_controller_test.rb
test/unit/repository_mercurial_test.rb

index c2a1b58745c8fdf994e7ab43b11919e79a639be4..c0b9f4373956a126e40a86b6301e63253e9e26b3 100644 (file)
Binary files a/test/fixtures/repositories/mercurial_repository.tar.gz and b/test/fixtures/repositories/mercurial_repository.tar.gz differ
index a781b5c0d2014961ccc3656c64e552c6fec42489..492c6558edbcae5a2df5607f1a24b7f400a69f5f 100644 (file)
@@ -49,7 +49,7 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase
       assert_response :success
       assert_template 'show'
       assert_not_nil assigns(:entries)
-      assert_equal 3, assigns(:entries).size
+      assert_equal 4, assigns(:entries).size
       assert assigns(:entries).detect {|e| e.name == 'images'  && e.kind == 'dir'}
       assert assigns(:entries).detect {|e| e.name == 'sources' && e.kind == 'dir'}
       assert assigns(:entries).detect {|e| e.name == 'README'  && e.kind == 'file'}
index 4a51b3d39ba1a4025c3463e85ab6fb8bd48fa1d7..741b455e51ddbcf1494691c397588f08ba101213 100644 (file)
@@ -33,8 +33,8 @@ class RepositoryMercurialTest < ActiveSupport::TestCase
       @repository.fetch_changesets
       @repository.reload
       
-      assert_equal 6, @repository.changesets.count
-      assert_equal 11, @repository.changes.count
+      assert_equal 17, @repository.changesets.count
+      assert_equal 25, @repository.changes.count
       assert_equal "Initial import.\nThe repository contains 3 files.", @repository.changesets.find_by_revision('0').comments
     end
     
@@ -46,7 +46,7 @@ class RepositoryMercurialTest < ActiveSupport::TestCase
       assert_equal 3, @repository.changesets.count
       
       @repository.fetch_changesets
-      assert_equal 6, @repository.changesets.count
+      assert_equal 17, @repository.changesets.count
     end
     
     def test_entries