diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-02-07 10:26:15 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-02-07 10:26:15 +0000 |
commit | 109fd2cdfc880a1b91bf6e658e4bc35c6bdcf85f (patch) | |
tree | d4f3081867eb9669b8ac044246683f25f15f2e78 /test/unit/repository_cvs_test.rb | |
parent | e9ab2de1e79719f832d4fa8b0bbeebbd55d7bc28 (diff) | |
download | redmine-109fd2cdfc880a1b91bf6e658e4bc35c6bdcf85f.tar.gz redmine-109fd2cdfc880a1b91bf6e658e4bc35c6bdcf85f.zip |
scm: cvs: generate pseudo scmid for auto issue close text (#6706).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4802 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/repository_cvs_test.rb')
-rw-r--r-- | test/unit/repository_cvs_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/repository_cvs_test.rb b/test/unit/repository_cvs_test.rb index e7b247ab4..a5da09f55 100644 --- a/test/unit/repository_cvs_test.rb +++ b/test/unit/repository_cvs_test.rb @@ -42,6 +42,9 @@ class RepositoryCvsTest < ActiveSupport::TestCase assert_equal 5, @repository.changesets.count assert_equal 14, @repository.changes.count assert_not_nil @repository.changesets.find_by_comments('Two files changed') + + r2 = @repository.changesets.find_by_revision('2') + assert_equal 'v1-20071213-162510', r2.scmid end def test_fetch_changesets_incremental @@ -57,6 +60,7 @@ class RepositoryCvsTest < ActiveSupport::TestCase assert_equal '3', rev3_commit.revision # 2007-12-14 01:27:22 +0900 rev3_committed_on = Time.gm(2007, 12, 13, 16, 27, 22) + assert_equal 'HEAD-20071213-162722', rev3_commit.scmid assert_equal rev3_committed_on, rev3_commit.committed_on latest_rev = @repository.latest_changeset assert_equal rev3_committed_on, latest_rev.committed_on @@ -67,6 +71,7 @@ class RepositoryCvsTest < ActiveSupport::TestCase assert_equal %w|5 4 3 2 1|, @repository.changesets.collect(&:revision) rev5_commit = @repository.changesets.find(:first, :order => 'committed_on DESC') + assert_equal 'HEAD-20071213-163001', rev5_commit.scmid # 2007-12-14 01:30:01 +0900 rev5_committed_on = Time.gm(2007, 12, 13, 16, 30, 1) assert_equal rev5_committed_on, rev5_commit.committed_on |