mirror of
https://github.com/redmine/redmine.git
synced 2025-11-04 20:35:57 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user