diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-03-11 12:06:05 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-03-11 12:06:05 +0000 |
commit | 099ba68836b9ff4544df3c46b6f5cb8a6081a185 (patch) | |
tree | 15aec786111288b5c4ee82af2046af566b728300 /test/unit/repository_cvs_test.rb | |
parent | 0d63e9e8fde36c88cf60095f814e5b76edb54027 (diff) | |
download | redmine-099ba68836b9ff4544df3c46b6f5cb8a6081a185.tar.gz redmine-099ba68836b9ff4544df3c46b6f5cb8a6081a185.zip |
scm: cvs: fix missing author, revision and comment in tree view (#4270).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5093 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/repository_cvs_test.rb')
-rw-r--r-- | test/unit/repository_cvs_test.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/unit/repository_cvs_test.rb b/test/unit/repository_cvs_test.rb index 0fd81615b..2d5db034d 100644 --- a/test/unit/repository_cvs_test.rb +++ b/test/unit/repository_cvs_test.rb @@ -89,6 +89,18 @@ class RepositoryCvsTest < ActiveSupport::TestCase assert entries.detect {|e| e.name == 'watchers_controller.rb'} assert_nil entries.detect {|e| e.name == 'welcome_controller.rb'} end + + def test_entries_rev3 + @repository.fetch_changesets + @repository.reload + entries = @repository.entries('', '3') + assert_equal 3, entries.size + assert_equal entries[2].name, "README" + assert_equal entries[2].lastrev.time, Time.gm(2007, 12, 13, 16, 27, 22) + assert_equal entries[2].lastrev.identifier, '3' + assert_equal entries[2].lastrev.revision, '3' + assert_equal entries[2].lastrev.author, 'LANG' + end else puts "CVS test repository NOT FOUND. Skipping unit tests !!!" def test_fake; assert true end |