From 3e475c88bed54acf9f6c796a24c3c11cd4c19bd8 Mon Sep 17 00:00:00 2001 From: "Luis M. Rodriguez-R" Date: Tue, 23 Jan 2024 20:59:43 +0100 Subject: [PATCH] Fix test --- test/net_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/net_test.rb b/test/net_test.rb index 927f5fb..c90bd52 100644 --- a/test/net_test.rb +++ b/test/net_test.rb @@ -57,13 +57,13 @@ def test_encoding # Test with a different encoding t2 = t2.encode('windows-1252') - assert_equal('Windows-1252', t2.encoding_to_s) + assert_equal('Windows-1252', t2.encoding.to_s) assert_not_equal(t1, t2) assert_equal(t1, MiGA::MiGA.normalize_encoding(t2)) # Test with a different encoding wrongly declared t2.force_encoding('utf-8') - assert_equal('UTF-8', t2.encoding_to_s) + assert_equal('UTF-8', t2.encoding.to_s) assert_not_equal(t1, t2) assert_equal(t1, MiGA::MiGA.normalize_encoding(t2)) end