diff options
author | Go MAEDA <maeda@farend.jp> | 2019-03-19 15:43:55 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-03-19 15:43:55 +0000 |
commit | 26509e7f4c6dae94baf291b95d46eb6ec8ebca0b (patch) | |
tree | eca8843de4ca00c229612e8f4f323a5474444a29 /test/unit/repository_test.rb | |
parent | 7d2f10ccac0e51a8eb337ed388ab8182df4c25e1 (diff) | |
download | redmine-26509e7f4c6dae94baf291b95d46eb6ec8ebca0b.tar.gz redmine-26509e7f4c6dae94baf291b95d46eb6ec8ebca0b.zip |
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
Diffstat (limited to 'test/unit/repository_test.rb')
-rw-r--r-- | test/unit/repository_test.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/unit/repository_test.rb b/test/unit/repository_test.rb index 27628964b..9e955f00f 100644 --- a/test/unit/repository_test.rb +++ b/test/unit/repository_test.rb @@ -60,13 +60,12 @@ class RepositoryTest < ActiveSupport::TestCase def test_blank_log_encoding_error_message_fr set_language_if_valid 'fr' - str = "Encodage des messages de commit doit \xc3\xaatre renseign\xc3\xa9(e)".force_encoding('UTF-8') repo = Repository::Bazaar.new( :project => Project.find(3), :url => "/test" ) assert !repo.save - assert_include str, repo.errors.full_messages + assert_include 'Encodage des messages de commit doit ĂȘtre renseignĂ©(e)', repo.errors.full_messages end def test_create @@ -287,7 +286,7 @@ class RepositoryTest < ActiveSupport::TestCase :url => '/foo/bar/baz' ) long_whitespace = " " expected_comment = "This is a loooooooooooooooooooooooooooong comment" - comment = "#{expected_comment}#{long_whitespace}\n" + comment = +"#{expected_comment}#{long_whitespace}\n" 3.times {comment << "#{long_whitespace}\n"} changeset = Changeset.new( :comments => comment, :commit_date => Time.now, |