Sha256: 033c29c4f133c4cd5d723300b6a10086b3eaee4fbb43d4e831bcee1d1ac0f48b

Contents?: true

Size: 529 Bytes

Versions: 17

Compression:

Stored size: 529 Bytes

Contents

require "test_helper"

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

  def test_image_and_text_and_number
    mail = mail('mtn-southafrica-mms.mail')
    mms = MMS2R::Media.new(mail)
    assert_equal "mms.mtn.co.za", mms.carrier

    assert_equal "22222222222", mms.number

    assert_equal 1, mms.media.size
    assert_nil mms.media['image/bmp']
    assert_equal 1, mms.media['text/plain'].size
    assert_equal "Obsession Obsession", open(mms.media['text/plain'].first).read

    mms.purge
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
mms2r-3.9.2 test/test_mms_mtn_co_za.rb
mms2r-3.9.1 test/test_mms_mtn_co_za.rb
mms2r-3.9.0 test/test_mms_mtn_co_za.rb
mms2r-3.8.2 test/test_mms_mtn_co_za.rb
mms2r-3.8.1 test/test_mms_mtn_co_za.rb
mms2r-3.8.0 test/test_mms_mtn_co_za.rb
mms2r-3.7.1 test/test_mms_mtn_co_za.rb
mms2r-3.7.0 test/test_mms_mtn_co_za.rb
mms2r-3.6.4 test/test_mms_mtn_co_za.rb
mms2r-3.6.3 test/test_mms_mtn_co_za.rb
mms2r-3.6.2 test/test_mms_mtn_co_za.rb
mms2r-3.6.1 test/test_mms_mtn_co_za.rb
mms2r-3.6.0 test/test_mms_mtn_co_za.rb
mms2r-3.5.1 test/test_mms_mtn_co_za.rb
mms2r-3.5.0 test/test_mms_mtn_co_za.rb
mms2r-3.4.1 test/test_mms_mtn_co_za.rb
mms2r-3.4.0 test/test_mms_mtn_co_za.rb