Sha256: 7d803b5a9f9438d1ac09d67747ea5154c90a5ed9117970150ec8ae4a525ddea9

Contents?: true

Size: 371 Bytes

Versions: 4

Compression:

Stored size: 371 Bytes

Contents

require 'test_helper'
require 'mail'

class TestMail < Test::Unit::TestCase
  def test_signature
    m = Mail.new(File.read(fixture('mail_with_signature.txt')))
    assert(m)
    assert(m.body.include?('-- '))
    assert_false(m.body.decoded.split('-- ').include?('-- '))
  end

  def fixture(name)
    File.join(File.dirname(__FILE__), '..', 'fixtures', name)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
twmail-0.0.6 test/unit/test_mail.rb
twmail-0.0.5 test/unit/test_mail.rb
twmail-0.0.4 test/unit/test_mail.rb
twmail-0.0.3 test/unit/test_mail.rb