Sha256: d8809b77c10229c5f2e3ef6a6d03c1332b22ff3ae5cc370e75bd6fd6765b7450

Contents?: true

Size: 719 Bytes

Versions: 5

Compression:

Stored size: 719 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 Test3IrelandIe < Test::Unit::TestCase
  include MMS2R::TestHelper
  
  def test_image_and_text_and_number
    mail = TMail::Mail.parse(load_mail('3ireland-mms-01.mail').join)
    mms = MMS2R::Media.new(mail)
    
    assert_equal "351234567890", mms.number
    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

5 entries across 5 versions & 1 rubygems

Version Path
mms2r-2.1.0 test/test_mms_3ireland_ie.rb
mms2r-2.0.5 test/test_mms_3ireland_ie.rb
mms2r-2.1.1 test/test_mms_3ireland_ie.rb
mms2r-2.1.2 test/test_mms_3ireland_ie.rb
mms2r-2.1.3 test/test_mms_3ireland_ie.rb