diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-01-23 04:17:03 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-01-23 04:17:03 +0000 |
commit | abd2762aede80ad9fd5cb984d66690bd74804567 (patch) | |
tree | 99202ce8bff2f178cc5fa62f95fcd6274effe09f | |
parent | 1df08afefddbfe601d7046ed8c82b6c5f8a8bb50 (diff) | |
download | redmine-abd2762aede80ad9fd5cb984d66690bd74804567.tar.gz redmine-abd2762aede80ad9fd5cb984d66690bd74804567.zip |
scm: darcs: add compatible test of Darcs 2.3 and 2.4 (#7415).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4748 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/unit/lib/redmine/scm/adapters/darcs_adapter_test.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/unit/lib/redmine/scm/adapters/darcs_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/darcs_adapter_test.rb index 820ffdb90..993b42ca7 100644 --- a/test/unit/lib/redmine/scm/adapters/darcs_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/darcs_adapter_test.rb @@ -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) |