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/!
),