Sha256: f47a84b9c39d43f88563178ba67d710716fe554e99ad57fd8b75a0d39d976404
Contents?: true
Size: 672 Bytes
Versions: 3
Compression:
Stored size: 672 Bytes
Contents
require_relative '../helper' 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
postageapp-1.4.2 | test/unit/mailer_helper_methods_test.rb |
postageapp-1.4.1 | test/unit/mailer_helper_methods_test.rb |
postageapp-1.4.0 | test/unit/mailer_helper_methods_test.rb |