diff options
author | Jacob Vosmaer (GitLab) <jacob@gitlab.com> | 2017-11-23 13:48:57 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-11-23 13:48:57 +0300 |
commit | 4cfcc97544c231c2baf8dc3ab232ed394355b62c (patch) | |
tree | 0914bf3d34b8311d210ef94c5af341417dc76286 /spec/lib/gitlab/encoding_helper_spec.rb | |
parent | ffa2a98034fb300f0e0d4ac438031f95a4359441 (diff) |
Fix encoding bugs in Gitlab::Git::User
Diffstat (limited to 'spec/lib/gitlab/encoding_helper_spec.rb')
-rw-r--r-- | spec/lib/gitlab/encoding_helper_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/lib/gitlab/encoding_helper_spec.rb b/spec/lib/gitlab/encoding_helper_spec.rb index 9151c66afb3..f6e5c55240f 100644 --- a/spec/lib/gitlab/encoding_helper_spec.rb +++ b/spec/lib/gitlab/encoding_helper_spec.rb @@ -9,6 +9,7 @@ describe Gitlab::EncodingHelper do ["nil", nil, nil], ["empty string", "".encode("ASCII-8BIT"), "".encode("UTF-8")], ["invalid utf-8 encoded string", "my bad string\xE5".force_encoding("UTF-8"), "my bad string"], + ["frozen non-ascii string", "é".force_encoding("ASCII-8BIT").freeze, "é".encode("UTF-8")], [ 'leaves ascii only string as is', 'ascii only string', |