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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user