Sha256: 0d93e7412ffdd58db518764f38365aa62f7529c89b287d48c16c3f961f98d855
Contents?: true
Size: 761 Bytes
Versions: 3
Compression:
Stored size: 761 Bytes
Contents
require "test_helper" class TestPxtVodafoneNetNz < Test::Unit::TestCase include MMS2R::TestHelper def setup mail = mail('pxt-image-01.mail') @mms = MMS2R::Media.new(mail) assert_equal '+55512345', @mms.number assert_equal 'pxt.vodafone.net.nz', @mms.carrier end def teardown @mms.purge end def test_pxt_text_returns_text_plain assert_not_nil(@mms.media['text/plain']) file = @mms.media['text/plain'][0] assert_not_nil(file) assert(File::exist?(file), "file #{file} does not exist") text = IO.read("#{file}") assert_match(/Kia ora ano Luke/, text) assert_match(/Kia ora ano Luke/, @mms.body) end def test_subject_should_clear_default_pxt_message assert_equal "", @mms.subject end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mms2r-3.9.2 | test/test_pxt_vodafone_net_nz.rb |
mms2r-3.9.1 | test/test_pxt_vodafone_net_nz.rb |
mms2r-3.9.0 | test/test_pxt_vodafone_net_nz.rb |