Methods
Public Instance methods
[ show source ]
# File test/mail_render_test.rb, line 30
30: def setup
31: ActionMailer::Base.delivery_method = :test
32: ActionMailer::Base.perform_deliveries = true
33: ActionMailer::Base.deliveries = []
34:
35: @recipient = 'test@localhost'
36: end
[ show source ]
# File test/mail_render_test.rb, line 43
43: def test_file_template
44: mail = RenderMailer.create_file_template(@recipient)
45: assert_equal "Hello there, \n\nMr. test@localhost", mail.body.strip
46: end
[ show source ]
# File test/mail_render_test.rb, line 38
38: def test_inline_template
39: mail = RenderMailer.create_inline_template(@recipient)
40: assert_equal "Hello, Earth", mail.body.strip
41: end