mirror of
https://github.com/redmine/redmine.git
synced 2025-11-14 01:06:00 +01:00
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:
@@ -107,7 +107,7 @@ class CustomFieldTest < ActiveSupport::TestCase
|
||||
|
||||
def test_possible_values_should_return_utf8_encoded_strings
|
||||
field = CustomField.new
|
||||
s = (+"Value").force_encoding('BINARY')
|
||||
s = "Value".b
|
||||
field.possible_values = s
|
||||
assert_equal [s], field.possible_values
|
||||
assert_equal 'UTF-8', field.possible_values.first.encoding.name
|
||||
|
||||
Reference in New Issue
Block a user