Use #b shortcut instead of #force_encoding (#31059).

Patch by Pavel Rosický.


git-svn-id: http://svn.redmine.org/redmine/trunk@17992 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2019-03-20 01:36:44 +00:00
parent 26509e7f4c
commit 606e75d12d
14 changed files with 32 additions and 40 deletions

View File

@@ -47,7 +47,7 @@ class RepositoryBazaarTest < ActiveSupport::TestCase
Encoding.locale_charmap == "ISO-8859-1")
CHAR_1_UTF8_HEX = 'Ü'
CHAR_1_LATIN1_HEX = (+"\xdc").force_encoding('ASCII-8BIT')
CHAR_1_LATIN1_HEX = "\xdc".b
def setup
User.current = nil