test/rubygems/test_gem_text.rb in rubygems-update-2.7.8 vs test/rubygems/test_gem_text.rb in rubygems-update-2.7.9

- old
+ new

@@ -83,6 +83,11 @@ assert_equal "abc", truncate_text("abc", "desc") assert_equal "Truncating desc to 2 characters:\nab", truncate_text("abc", "desc", 2) s = "ab" * 500_001 assert_equal "Truncating desc to 1,000,000 characters:\n#{s[0, 1_000_000]}", truncate_text(s, "desc", 1_000_000) end + + def test_clean_text + assert_equal ".]2;nyan.", clean_text("\e]2;nyan\a") + end + end