Render Textile and Markdown files in the repository browser (#16849).

Patch by Takenori TAKAKI.


git-svn-id: http://svn.redmine.org/redmine/trunk@21013 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2021-05-28 08:37:30 +00:00
parent 66fc9f463d
commit 5ac8f70d10
5 changed files with 38 additions and 7 deletions

View File

@@ -24,7 +24,7 @@ class RepositorySubversionTest < ActiveSupport::TestCase
include Redmine::I18n
NUM_REV = 12
NUM_REV = 13
def setup
User.current = nil
@@ -100,7 +100,7 @@ class RepositorySubversionTest < ActiveSupport::TestCase
@project.reload
assert_equal NUM_REV, @repository.changesets.count
assert_equal 21, @repository.filechanges.count
assert_equal 23, @repository.filechanges.count
assert_equal 'Initial import.', @repository.changesets.find_by_revision('1').comments
end
@@ -144,7 +144,7 @@ class RepositorySubversionTest < ActiveSupport::TestCase
# with path
changesets = @repository.latest_changesets('subversion_test/folder', nil)
assert_equal ["12", "10", "9", "7", "6", "5", "2"], changesets.collect(&:revision)
assert_equal ["13", "12", "10", "9", "7", "6", "5", "2"], changesets.collect(&:revision)
# with path and revision
changesets = @repository.latest_changesets('subversion_test/folder', 8)