Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #8393 from frodsan/fix_dependend_order_test_example

Ensure original encoding does not change in mb_chars test.
  • Loading branch information...
commit e1ce84b1a95cfc6aac0ae904e6597f467f229eac 2 parents baa4d79 + 86dd2f3
@carlosantoniodasilva carlosantoniodasilva 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
Please sign in to comment.
Something went wrong with that request. Please try again.