From ae2dee14ef72df8e8e12ee547a13a9a92f91718b Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sun, 18 Jan 2015 16:40:50 +0000 Subject: [PATCH] add tests to RepositoryCvsTest#test_entries_rev3 git-svn-id: http://svn.redmine.org/redmine/trunk@13906 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/repository_cvs_test.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/unit/repository_cvs_test.rb b/test/unit/repository_cvs_test.rb index 04d086306..b4eb00808 100644 --- a/test/unit/repository_cvs_test.rb +++ b/test/unit/repository_cvs_test.rb @@ -175,6 +175,16 @@ class RepositoryCvsTest < ActiveSupport::TestCase @repository.fetch_changesets @project.reload assert_equal CHANGESETS_NUM, @repository.changesets.count + + rev3_commit = @repository.changesets.find_by_revision('3') + assert_equal "3", rev3_commit.revision + assert_equal "LANG", rev3_commit.committer + assert_equal 2, rev3_commit.filechanges.length + assert_equal "1.2", rev3_commit.filechanges[0].revision + assert_equal "1.2", rev3_commit.filechanges[1].revision + assert_equal "/README", rev3_commit.filechanges[0].path + assert_equal "/sources/watchers_controller.rb", rev3_commit.filechanges[1].path + entries = @repository.entries('', '3') assert_kind_of Redmine::Scm::Adapters::Entries, entries assert_equal 3, entries.size -- 2.39.5