Methods
Public Instance methods
[ show source ]
# File test/mail_render_test.rb, line 41
41: def setup
42: ActionMailer::Base.delivery_method = :test
43: ActionMailer::Base.perform_deliveries = true
44: ActionMailer::Base.deliveries = []
45:
46: @recipient = 'test@localhost'
47: end
[ show source ]
# File test/mail_render_test.rb, line 54
54: def test_file_template
55: mail = RenderMailer.create_file_template(@recipient)
56: assert_equal "Hello there, \n\nMr. test@localhost", mail.body.strip
57: end
[ show source ]
# File test/mail_render_test.rb, line 49
49: def test_inline_template
50: mail = RenderMailer.create_inline_template(@recipient)
51: assert_equal "Hello, Earth", mail.body.strip
52: end