Sha256: bbf563ab5dde0a6c8602883d86941598ce37f13e54aa449a27bfc13b9c68d0df
Contents?: true
Size: 577 Bytes
Versions: 6
Compression:
Stored size: 577 Bytes
Contents
require File.join(File.dirname(__FILE__), "test_helper") class TestMmsMobileiamMa < Test::Unit::TestCase include MMS2R::TestHelper def test_image_and_number mail = mail('maroctelecom-france-mms-01.mail') mms = MMS2R::Media.new(mail) assert_equal "98206867309", mms.number assert_equal "mms.mobileiam.ma", mms.carrier assert_equal 1, mms.media.size assert_equal 1, mms.media['image/gif'].size assert_match(/jalwapam\.gif$/, mms.media['image/gif'].first) assert_equal 1855, File.size(mms.media['image/gif'].first) mms.purge end end
Version data entries
6 entries across 6 versions & 1 rubygems