Sha256: e49c1abb9de16097f164cbfb1dbf657a597ad03c72a2d207bf5aa53ecc422eb1

Contents?: true

Size: 709 Bytes

Versions: 1

Compression:

Stored size: 709 Bytes

Contents

require File.expand_path('../helper', __FILE__)

class MailerHelperMethodsTest < Minitest::Test
  
  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_match 'html content', request.body
    assert_match 'text content', request.body
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
postageapp-1.0.24 test/mailer_helper_methods_test.rb