summaryrefslogtreecommitdiffstats
path: root/test/unit/repository_cvs_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-03-11 12:06:05 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-03-11 12:06:05 +0000
commit099ba68836b9ff4544df3c46b6f5cb8a6081a185 (patch)
tree15aec786111288b5c4ee82af2046af566b728300 /test/unit/repository_cvs_test.rb
parent0d63e9e8fde36c88cf60095f814e5b76edb54027 (diff)
downloadredmine-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.rb12
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