Sha256: 1b0d1c7f7b6f3eeddaa514b021f382a58ee99f0f232c3e9817f7d7f046079b3c

Contents?: true

Size: 715 Bytes

Versions: 14

Compression:

Stored size: 715 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_match 'html content', request.body
    assert_match 'text content', request.body
  end
  
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
postageapp-1.0.23 test/mailer_helper_methods_test.rb
postageapp-1.0.22 test/mailer_helper_methods_test.rb
postageapp-1.0.21 test/mailer_helper_methods_test.rb
postageapp-1.0.20 test/mailer_helper_methods_test.rb
postageapp-1.0.19 test/mailer_helper_methods_test.rb
postageapp-1.0.18 test/mailer_helper_methods_test.rb
postageapp-1.0.17 test/mailer_helper_methods_test.rb
postageapp-1.0.16 test/mailer_helper_methods_test.rb
postageapp-1.0.15 test/mailer_helper_methods_test.rb
postageapp-1.0.14 test/mailer_helper_methods_test.rb
postageapp-1.0.13 test/mailer_helper_methods_test.rb
postageapp-1.0.12 test/mailer_helper_methods_test.rb
postageapp-1.0.11 test/mailer_helper_methods_test.rb
postageapp-1.0.10 test/mailer_helper_methods_test.rb