Sha256: c54d18ea0f547a2816194c37efc677e2d3306c7008e99cc4bd10515eb2297ec2
Contents?: true
Size: 685 Bytes
Versions: 8
Compression:
Stored size: 685 Bytes
Contents
require File.expand_path('../helper', __FILE__) class MailerHelperMethodsTest < Test::Unit::TestCase def test_mailer_helper_methods request = PostageApp::Request.new(:send_message, { :headers => { 'from' => 'sender@test.test', 'subject' => 'Test Message'}, :recipients => 'test@test.test', :content => { 'text/plain' => 'text content', 'text/html' => 'html content' } }) assert_equal ['test@test.test'], request.to assert_equal ['sender@test.test'], request.from assert_equal 'Test Message', request.subject assert_equal "html content\n\ntext content", request.body end end
Version data entries
8 entries across 8 versions & 1 rubygems