require_relative '../test_helper' class Mail::PartTest < MiniTest::Unit::TestCase def test_responds_to_to_postmark assert_respond_to Mail::Part.new, :to_postmark end def test_to_postmark_text_part content = %{Think of me like Yoda, but instead of being little and green I wear suits and I'm awesome. I'm your bro-I'm Broda!} part = Mail::Part.new part.body = content part.content_type = 'text/plain' assert_equal Hash['Name' => nil, 'Content' => content, 'ContentType' => 'text/plain'], part.to_postmark end def test_to_postmark_mail_part content = %{
Think of me like Yoda, but instead of being little and green I wear suits and I'm awesome.
I'm your bro-I'm Broda!