mirror of
https://github.com/redmine/redmine.git
synced 2025-11-11 15:56:03 +01:00
Decode hexadecimal-encoded literals in order to be frozen string literals friendly (#31004).
Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@17991 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -50,7 +50,6 @@ class RepositoryFilesystemTest < ActiveSupport::TestCase
|
||||
|
||||
def test_blank_root_directory_error_message_fr
|
||||
set_language_if_valid 'fr'
|
||||
str = "R\xc3\xa9pertoire racine doit \xc3\xaatre renseign\xc3\xa9(e)".force_encoding('UTF-8')
|
||||
repo = Repository::Filesystem.new(
|
||||
:project => @project,
|
||||
:url => "",
|
||||
@@ -58,7 +57,7 @@ class RepositoryFilesystemTest < ActiveSupport::TestCase
|
||||
:path_encoding => ''
|
||||
)
|
||||
assert !repo.save
|
||||
assert_include str, repo.errors.full_messages
|
||||
assert_include 'Répertoire racine doit être renseigné(e)', repo.errors.full_messages
|
||||
end
|
||||
|
||||
if File.directory?(REPOSITORY_PATH)
|
||||
|
||||
Reference in New Issue
Block a user