Methods
T
Instance Public methods
test_use_block_format()
# File actionmailer/test/mail_helper_test.rb, line 103
def test_use_block_format
  mail = HelperMailer.use_block_format
  expected = <<-TEXT
This is the first paragraph.

The second paragraph.

* item1
* item2
* item3
  TEXT
  assert_equal expected.gsub("\n", "\r\n"), mail.body.encoded
end
test_use_cache()
# File actionmailer/test/mail_helper_test.rb, line 117
def test_use_cache
  assert_nothing_raised do
    mail = HelperMailer.use_cache
    assert_equal "Greetings from a cache helper block", mail.body.encoded
  end
end
test_use_format_paragraph()
# File actionmailer/test/mail_helper_test.rb, line 93
def test_use_format_paragraph
  mail = HelperMailer.use_format_paragraph
  assert_match " But soft! What\r\n light through\r\n yonder window\r\n breaks?", mail.body.encoded
end
test_use_format_paragraph_with_long_first_word()
# File actionmailer/test/mail_helper_test.rb, line 98
def test_use_format_paragraph_with_long_first_word
  mail = HelperMailer.use_format_paragraph_with_long_first_word
  assert_equal " Antidisestablishmentarianism\r\n is very\r\n long.", mail.body.encoded
end
test_use_mail_helper()
# File actionmailer/test/mail_helper_test.rb, line 77
def test_use_mail_helper
  mail = HelperMailer.use_mail_helper
  assert_match %r{  But soft!}, mail.body.encoded
  assert_match %r{east, and\r\n  Juliet}, mail.body.encoded
end
test_use_mailer()
# File actionmailer/test/mail_helper_test.rb, line 83
def test_use_mailer
  mail = HelperMailer.use_mailer
  assert_match "using helpers", mail.body.encoded
end
test_use_message()
# File actionmailer/test/mail_helper_test.rb, line 88
def test_use_message
  mail = HelperMailer.use_message
  assert_match "using helpers", mail.body.encoded
end