Adds a setting to limit the number of revisions displayed on a repository file log (default=100).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2350 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2009-02-01 19:54:50 +00:00
parent d3b2049851
commit ab5e07e83e
41 changed files with 58 additions and 9 deletions
+7
View File
@@ -48,6 +48,13 @@ class RepositorySubversionTest < Test::Unit::TestCase
@repository.fetch_changesets
assert_equal 8, @repository.changesets.count
end
def test_changesets_for_path_with_limit
@repository.fetch_changesets
changesets = @repository.changesets_for_path('', :limit => 2)
assert_equal 2, changesets.size
assert_equal @repository.changesets_for_path('').slice(0,2), changesets
end
else
puts "Subversion test repository NOT FOUND. Skipping unit tests !!!"
def test_fake; assert true end