Sha256: 5eee85838e9b8384b6e059a8cdf702c57dd355c273ff04a4bd84d1250922180b

Contents?: true

Size: 500 Bytes

Versions: 2

Compression:

Stored size: 500 Bytes

Contents

require './test/test_base.rb'

class MIMEBuilderTextTest < Test::Unit::TestCase
  def test_contenttype
    test_text = 'Hello world!'

    filepart = MIMEBuilder::Text.new test_text

    assert_equal 'text/plain', filepart.mime.headers.get('Content-Type')

    assert_equal test_text, filepart.mime.body.to_s
  end

  def test_content_id_disable
    filepart = MIMEBuilder::Text.new 'Hello world!', :content_id_disable => true

    assert_equal nil, filepart.mime.headers.get('Content-Id')
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mime_builder-0.1.1 test/test_text.rb
mime_builder-0.1.0 test/test_text.rb