Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ensure original encoding doesnt change

  • Loading branch information...
commit 86dd2f32764ef3f141d9b24a47725b004fd4ac71 1 parent 583cc11
Francesco Rodriguez authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  activesupport/test/multibyte_chars_test.rb
View
3  activesupport/test/multibyte_chars_test.rb
@@ -47,7 +47,10 @@ def test_forwarded_bang_method_calls_should_return_nil_when_result_is_nil
end
def test_methods_are_forwarded_to_wrapped_string_for_byte_strings
+ original_encoding = BYTE_STRING.encoding
assert_equal BYTE_STRING.length, BYTE_STRING.mb_chars.length
+ ensure
+ BYTE_STRING.force_encoding(original_encoding)
end
def test_forwarded_method_with_non_string_result_should_be_returned_vertabim

0 comments on commit 86dd2f3

Please sign in to comment.
Something went wrong with that request. Please try again.