diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-02-01 19:54:50 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-02-01 19:54:50 +0000 |
commit | ab5e07e83ef2573ae32da1a7ada5398d03777932 (patch) | |
tree | 0b41a69bd70191b8138c56923066ef212e045e41 /test | |
parent | d3b2049851c8dd242a6882ee23cf9cdf8944e5c9 (diff) | |
download | redmine-ab5e07e83ef2573ae32da1a7ada5398d03777932.tar.gz redmine-ab5e07e83ef2573ae32da1a7ada5398d03777932.zip |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/repository_subversion_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
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 |