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