mirror of
https://github.com/redmine/redmine.git
synced 2025-11-14 09:16:02 +01:00
SCM:
* Fixes file log for non-Git repositories (Repository#latest_changesets ignores path argument) * No longer used Repository#changesets_for_path method removed git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2844 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -69,7 +69,7 @@ class ChangesetTest < Test::Unit::TestCase
|
||||
end
|
||||
|
||||
def test_next_nil
|
||||
changeset = Changeset.find_by_revision('4')
|
||||
changeset = Changeset.find_by_revision('8')
|
||||
assert_nil changeset.next
|
||||
end
|
||||
end
|
||||
|
||||
@@ -49,11 +49,17 @@ class RepositorySubversionTest < Test::Unit::TestCase
|
||||
assert_equal 8, @repository.changesets.count
|
||||
end
|
||||
|
||||
def test_changesets_for_path_with_limit
|
||||
def test_latest_changesets_with_limit
|
||||
@repository.fetch_changesets
|
||||
changesets = @repository.changesets_for_path('', :limit => 2)
|
||||
changesets = @repository.latest_changesets('', nil, 2)
|
||||
assert_equal 2, changesets.size
|
||||
assert_equal @repository.changesets_for_path('').slice(0,2), changesets
|
||||
assert_equal @repository.latest_changesets('', nil).slice(0,2), changesets
|
||||
end
|
||||
|
||||
def test_latest_changesets_with_path
|
||||
@repository.fetch_changesets
|
||||
changesets = @repository.latest_changesets('subversion_test/folder/helloworld.rb', nil)
|
||||
assert_equal %w(6 3 2), changesets.collect(&:revision)
|
||||
end
|
||||
else
|
||||
puts "Subversion test repository NOT FOUND. Skipping unit tests !!!"
|
||||
|
||||
Reference in New Issue
Block a user