scm: add feature of per project repository log encoding setting (#1735).
Subversion, Mercurial and Git supports UTF-8 log. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4982 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -19,14 +19,17 @@ require File.expand_path('../../test_helper', __FILE__)
|
||||
|
||||
class RepositoryBazaarTest < ActiveSupport::TestCase
|
||||
fixtures :projects
|
||||
|
||||
|
||||
# No '..' in the repository path
|
||||
REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + '/tmp/test/bazaar_repository'
|
||||
REPOSITORY_PATH.gsub!(/\/+/, '/')
|
||||
|
||||
def setup
|
||||
@project = Project.find(3)
|
||||
assert @repository = Repository::Bazaar.create(:project => @project, :url => "file:///#{REPOSITORY_PATH}")
|
||||
@repository = Repository::Bazaar.create(
|
||||
:project => @project, :url => "file:///#{REPOSITORY_PATH}",
|
||||
:log_encoding => 'UTF-8')
|
||||
assert @repository
|
||||
end
|
||||
|
||||
if File.directory?(REPOSITORY_PATH)
|
||||
|
||||
Reference in New Issue
Block a user