From ab99a4f37ef6a436f3aad0e7ec3ffcfbb413d613 Mon Sep 17 00:00:00 2001 From: Ghouse Mohamed Date: Wed, 16 Mar 2022 19:46:52 +0530 Subject: [PATCH] multibyte_chars_test should test with ActiveSupport::Multibyte::Chars class as proxy --- activesupport/test/multibyte_chars_test.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/activesupport/test/multibyte_chars_test.rb b/activesupport/test/multibyte_chars_test.rb index 2e7dcbbf6f4..f5338ff7151 100644 --- a/activesupport/test/multibyte_chars_test.rb +++ b/activesupport/test/multibyte_chars_test.rb @@ -111,8 +111,9 @@ class MultibyteCharsUTF8BehaviourTest < ActiveSupport::TestCase %w{capitalize downcase lstrip reverse rstrip swapcase upcase}.each do |method| class_eval(<<-EOTESTS, __FILE__, __LINE__ + 1) def test_#{method}_bang_should_return_self_when_modifying_wrapped_string - chars = ' él piDió Un bUen café '.dup - assert_equal chars.object_id, chars.public_send("#{method}!").object_id + original = ' él piDió Un bUen café '.dup + proxy = chars(original.dup) + assert_equal proxy.object_id, proxy.public_send("#{method}!").object_id end def test_#{method}_bang_should_change_wrapped_string