test/rubygems/test_gem_text.rb in rubygems-update-3.0.2 vs test/rubygems/test_gem_text.rb in rubygems-update-3.0.3

- old
+ new

@@ -87,6 +87,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