diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-04-17 09:33:34 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-04-17 09:33:34 +0000 |
commit | 94f71773b6438142cb5a18747b37e6a36fb96a06 (patch) | |
tree | fdf0d704732fd9c700d4f74d0fbc62912091ca0d /test/unit/repository_mercurial_test.rb | |
parent | 79b7e89cf9720cd4da396ec68f6b141040984c1e (diff) | |
download | redmine-94f71773b6438142cb5a18747b37e6a36fb96a06.tar.gz redmine-94f71773b6438142cb5a18747b37e6a36fb96a06.zip |
scm: mercurial: add test of copied file from_revision node id at unit model test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5481 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/repository_mercurial_test.rb')
-rw-r--r-- | test/unit/repository_mercurial_test.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/unit/repository_mercurial_test.rb b/test/unit/repository_mercurial_test.rb index 3f718aed1..2ec1dee4f 100644 --- a/test/unit/repository_mercurial_test.rb +++ b/test/unit/repository_mercurial_test.rb @@ -176,6 +176,7 @@ class RepositoryMercurialTest < ActiveSupport::TestCase assert_equal 'A', c1[0].action assert_equal '/sql_escape/percent%dir/percentfile1.txt', c1[0].path assert_equal '/sql_escape/percent%dir/percent%file1.txt', c1[0].from_path + assert_equal '3a330eb32958', c1[0].from_revision assert_equal 'A', c1[1].action assert_equal '/sql_escape/underscore_dir/understrike-file.txt', c1[1].path @@ -188,6 +189,7 @@ class RepositoryMercurialTest < ActiveSupport::TestCase assert_equal 'A', c2[0].action assert_equal '/README (1)[2]&,%.-3_4', c2[0].path assert_equal '/README', c2[0].from_path + assert_equal '933ca60293d7', c2[0].from_revision cs3 = @repository.changesets.find_by_revision('19') c3 = cs3.changes @@ -195,6 +197,7 @@ class RepositoryMercurialTest < ActiveSupport::TestCase assert_equal 'A', c3[0].action assert_equal "/latin-1-dir/test-#{@char_1}-1.txt", c3[0].path assert_equal "/latin-1-dir/test-#{@char_1}.txt", c3[0].from_path + assert_equal '5d9891a1b425', c3[0].from_revision end def test_find_changeset_by_name |