Projects
openEuler:24.03:SP1:Everything:64G
rubygem-actionmailer
_service:tar_scm:backport-CVE-2024-47889-test.p...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:backport-CVE-2024-47889-test.patch of Package rubygem-actionmailer
diff --git a/actionmailer/test/mail_helper_test.rb b/actionmailer/test/mail_helper_test.rb index a8ab19a95c0e3..e49eabdce8275 100644 --- a/actionmailer/test/mail_helper_test.rb +++ b/actionmailer/test/mail_helper_test.rb @@ -121,4 +121,16 @@ def test_use_cache assert_equal "Greetings from a cache helper block", mail.body.encoded end end + + def helper + Object.new.extend(ActionMailer::MailHelper) + end + + def test_block_format + assert_equal " * foo\n", helper.block_format(" * foo") + assert_equal " * foo\n", helper.block_format(" * foo") + assert_equal " * foo\n", helper.block_format("* foo") + assert_equal " * foo\n*bar", helper.block_format("* foo*bar") + assert_equal " * foo\n * bar\n", helper.block_format("* foo * bar") + end end
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2