Sha256: 3af22c3e82d324fe662ff4e4449c7b7c80e33b55e03c15b30353b2f57fde72d9

Contents?: true

Size: 541 Bytes

Versions: 17

Compression:

Stored size: 541 Bytes

Contents

require "test_helper"

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

  def test_image_and_text_and_number
    mail = mail('3ireland-mms-01.mail')
    mms = MMS2R::Media.new(mail)
    assert_equal "351234567890", mms.number
    assert_equal "mms.3ireland.ie", mms.carrier

    assert_equal 1, mms.media.size
    assert_equal 1, mms.media['image/jpeg'].size

    assert_match(/Image013\.jpg$/, mms.media['image/jpeg'].first)
    assert_equal 337, File.size(mms.media['image/jpeg'].first)

    mms.purge
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

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