From ab5e07e83ef2573ae32da1a7ada5398d03777932 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 1 Feb 2009 19:54:50 +0000 Subject: 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 --- test/unit/repository_subversion_test.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') diff --git a/test/unit/repository_subversion_test.rb b/test/unit/repository_subversion_test.rb index 7a1c9df4a..4054a0e41 100644 --- a/test/unit/repository_subversion_test.rb +++ b/test/unit/repository_subversion_test.rb @@ -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 -- cgit v1.2.3