summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/unit/repository_subversion_test.rb7
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