Sha256: 455dd12687321d7812988f550b99e190d54eac73e89995004af753bd38be3abf

Contents?: true

Size: 551 Bytes

Versions: 17

Compression:

Stored size: 551 Bytes

Contents

require "test_helper"

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

  def test_subject_number_image
    mail = mail('telus-image-01.mail')
    mms = MMS2R::Media.new(mail)

    assert_equal "", mms.subject
    assert_equal "2068675309", mms.number
    assert_equal "mms.telusmobility.com", mms.carrier

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

    image = mms.media['image/jpeg'].detect{|f| /Lil bud 2.jpg/ =~ f}
    assert_equal 337, File.size(image)

    mms.purge
  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

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