Sha256: ca1df704588fd132491532355206d7d5e78c2cb8cc20a9e2ba2b1a3acc55679a

Contents?: true

Size: 486 Bytes

Versions: 11

Compression:

Stored size: 486 Bytes

Contents

$:.unshift(File.dirname(__FILE__) + "/../lib/")
$:.unshift File.dirname(__FILE__) + "/fixtures/helpers"

require 'test/unit'
require 'action_mailer'

class TMailMailTest < Test::Unit::TestCase
  def test_body
    m = TMail::Mail.new
    expected = 'something_with_underscores'
    m.encoding = 'quoted-printable'
    quoted_body = [expected].pack('*M')
    m.body = quoted_body
    assert_equal "something_with_underscores=\n", m.quoted_body
    assert_equal expected, m.body
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
actionmailer-1.2.3 test/tmail_test.rb
actionmailer-1.2.4 test/tmail_test.rb
actionmailer-1.1.1 test/tmail_test.rb
actionmailer-1.2.0 test/tmail_test.rb
actionmailer-1.1.2 test/tmail_test.rb
actionmailer-1.1.3 test/tmail_test.rb
actionmailer-1.1.4 test/tmail_test.rb
actionmailer-1.1.5 test/tmail_test.rb
actionmailer-1.2.1 test/tmail_test.rb
actionmailer-1.2.2 test/tmail_test.rb
actionmailer-1.2.5 test/tmail_test.rb