Misc tests.

git-svn-id: http://svn.redmine.org/redmine/trunk@13731 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2014-12-07 21:32:14 +00:00
parent b66e68dc82
commit ee173b64b8
2 changed files with 37 additions and 8 deletions

View File

@@ -459,4 +459,10 @@ class RepositoryTest < ActiveSupport::TestCase
expected = {"Dave Lopper"=>{:commits_count=>11, :changes_count=>3}}
assert_equal expected, repository.stats_by_author
end
def test_fetch_changesets
# 2 repositories in fixtures
Repository::Subversion.any_instance.expects(:fetch_changesets).twice.returns(true)
Repository.fetch_changesets
end
end