class TestMLMailJapanese
Public Instance Methods
gen_mail(&b)
click to toggle source
# File vendor/qwik/lib/qwik/mail.rb, line 306 def gen_mail(&b) return QuickML::Mail.generate(&b) end
test_for_confirm()
click to toggle source
# File vendor/qwik/lib/qwik/mail.rb, line 326 def test_for_confirm str = 'To: test@example.com From: bob@example.net Subject: test test ' mail = gen_mail { str } # test_accessor eq 'bob@example.net', mail.mail_from eq ['test@example.com'], mail.recipients eq "test\n", mail.body end
test_jmail()
click to toggle source
# File vendor/qwik/lib/qwik/mail.rb, line 310 def test_jmail str = 'Date: Mon, 3 Feb 2001 12:34:56 +0900 From: "Test User" <user@e.com> To: "Test Mailing List" <test@example.com> Subject: Re: [test:1] テスト これはテストです。 ' mail = gen_mail { str } eq "これはテストです。\n".set_sourcecode_charset.to_mail_charset, mail.body eq str.set_sourcecode_charset.to_mail_charset, mail.bare eq "Re: [test:1] テスト ".set_sourcecode_charset.to_mail_charset, mail['Subject'] eq "これはテストです。\n".set_sourcecode_charset.to_mail_charset, mail.get_body end