Sha256: eb1466ab59e034513dd7a26c74bba8569c4a29739a224435e005b16d8407682d
Contents?: true
Size: 722 Bytes
Versions: 1
Compression:
Stored size: 722 Bytes
Contents
require File.join(File.dirname(__FILE__), "..", "lib", "mms2r") require File.join(File.dirname(__FILE__), "test_helper") require 'test/unit' require 'rubygems' require 'mocha' gem 'tmail', '>= 1.2.1' require 'tmail' class TestMmsMobileiamMa < Test::Unit::TestCase include MMS2R::TestHelper def test_image_and_number mail = TMail::Mail.parse(load_mail('maroctelecom-france-mms-01.mail').join) mms = MMS2R::Media.new(mail) assert_equal "98765432101", mms.number 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mms2r-2.0.4 | test/test_mms_mobileiam_ma.rb |