From f952b953e69910a3e56d1b0679aa0312d5835c48 Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Mon, 29 Dec 2025 11:35:44 -0500 Subject: [PATCH] Add test coverage for autolinking multiple URLs --- test/helpers/html_helper_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/helpers/html_helper_test.rb b/test/helpers/html_helper_test.rb index 249a7f518..1af507ddf 100644 --- a/test/helpers/html_helper_test.rb +++ b/test/helpers/html_helper_test.rb @@ -10,6 +10,12 @@ class HtmlHelperTest < ActionView::TestCase format_html("

Check this: https://example.com/

") end + test "convert multiple URLs in the same string" do + assert_equal_html \ + %(Visit https://foo.com/. Also see https://bar.com/!), + format_html("Visit https://foo.com/. Also see https://bar.com/!") + end + test "don't include punctuation in URL autolinking" do assert_equal_html \ %(

Check this: https://example.com/!

),