Sha256: b8e18af0aac7b0798dcefad1a34ddc78359ef6200142b8373bf11a2cf2623c54

Contents?: true

Size: 721 Bytes

Versions: 10

Compression:

Stored size: 721 Bytes

Contents

require "test_helper"

class TestInvalidByteSeqOutlook < Test::Unit::TestCase
  include MMS2R::TestHelper

  def test_bad_outlook
    mail = mail('invalid-byte-seq-outlook.mail')
    mms = MMS2R::Media.new(mail)
    body = mms.body
=begin

    assert_equal "+919812345678", mms.number
    assert_equal "1nbox.net", mms.carrier
    assert_equal 2, mms.media.size

    assert_not_nil mms.media['text/plain']
    assert_equal 1, mms.media['text/plain'].size
    assert_equal "testing123456789012", open(mms.media['text/plain'].first).read

    assert_not_nil mms.media['image/jpeg']
    assert_equal 1, mms.media['text/plain'].size
    assert_match(/@003\.jpg$/, mms.media['image/jpeg'].first)
=end

    mms.purge
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mms2r-3.8.2 test/test_invalid_byte_seq_outlook.rb
mms2r-3.8.1 test/test_invalid_byte_seq_outlook.rb
mms2r-3.8.0 test/test_invalid_byte_seq_outlook.rb
mms2r-3.7.1 test/test_invalid_byte_seq_outlook.rb
mms2r-3.7.0 test/test_invalid_byte_seq_outlook.rb
mms2r-3.6.4 test/test_invalid_byte_seq_outlook.rb
mms2r-3.6.3 test/test_invalid_byte_seq_outlook.rb
mms2r-3.6.2 test/test_invalid_byte_seq_outlook.rb
mms2r-3.6.1 test/test_invalid_byte_seq_outlook.rb
mms2r-3.6.0 test/test_invalid_byte_seq_outlook.rb