]> source.dussan.org Git - redmine.git/commitdiff
Merged r4748 from trunk.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 23 Jan 2011 04:21:34 +0000 (04:21 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 23 Jan 2011 04:21:34 +0000 (04:21 +0000)
scm: darcs: add compatible test of Darcs 2.3 and 2.4.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.1-stable@4750 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/lib/redmine/scm/adapters/darcs_adapter_test.rb

index 820ffdb900988d2abf34242538b88a12abca848c..993b42ca7b9602278e20fd36b9221777e65522b4 100644 (file)
@@ -19,6 +19,19 @@ begin
         end
       end
 
+      def test_revisions
+        id1 = '20080308225258-98289-761f654d669045eabee90b91b53a21ce5593cadf.gz'
+        revs = @adapter.revisions('', nil, nil, {:with_path => true})
+        assert_equal 6, revs.size
+        assert_equal id1, revs[5].scmid
+        paths = revs[5].paths
+        assert_equal 5, paths.size
+        assert_equal 'A', paths[0][:action]
+        assert_equal '/README', paths[0][:path]
+        assert_equal 'A', paths[1][:action]
+        assert_equal '/images', paths[1][:path]
+      end
+
       private
 
       def test_darcsversion_for(darcsversion, version)