Sha256: db756028c6190927b58cbcfc16450a2e410b15b8b3ce75c4f794366f2b6702eb

Contents?: true

Size: 638 Bytes

Versions: 14

Compression:

Stored size: 638 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 TestBellsouthNet < Test::Unit::TestCase
  include MMS2R::TestHelper
  
  def test_image_from_blackberry
    mail = TMail::Mail.parse(load_mail('suncom-blackberry.mail').join)
    mms = MMS2R::Media.new(mail)
    
    assert_nil mms.media['text/plain']
    
    assert_not_nil mms.media['image/jpeg'].first
    assert_match(/Windows-1252\?B\?SU1HMDAwNjUuanBn/, mms.media['image/jpeg'].first)
    mms.purge
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
brendanlim-mms2r-2.2.0.1 test/test_bellsouth_net.rb
brendanlim-mms2r-2.2.0 test/test_bellsouth_net.rb
mms2r-2.4.1 test/test_bellsouth_net.rb
mms2r-2.4.0 test/test_bellsouth_net.rb
mms2r-2.3.0 test/test_bellsouth_net.rb
mms2r-2.0.2 test/test_bellsouth_net.rb
mms2r-2.0.5 test/test_bellsouth_net.rb
mms2r-2.1.0 test/test_bellsouth_net.rb
mms2r-2.0.4 test/test_bellsouth_net.rb
mms2r-2.0.3 test/test_bellsouth_net.rb
mms2r-2.1.1 test/test_bellsouth_net.rb
mms2r-2.2.0 test/test_bellsouth_net.rb
mms2r-2.1.3 test/test_bellsouth_net.rb
mms2r-2.1.2 test/test_bellsouth_net.rb