Sha256: f4aee3e8a1eefb120ca428699f14c585f544ca9e848c3ecbb014f26578788a0f
Contents?: true
Size: 691 Bytes
Versions: 3
Compression:
Stored size: 691 Bytes
Contents
require 'test/unit' require_relative '../lib/messagemedia/soap/recipient' class TestRecipient < Test::Unit::TestCase def test_to_api_hash # First test receipient, with a custom message ID recipient = Messagemedia::SOAP::Recipient.new(123, 123456) assert_equal({ :'api:recipient' => 123456, :'attributes!' => { :'api:recipient' => { 'uid' => 123 } } }, recipient.to_api_hash) # Second test recipient, no message ID recipient = Messagemedia::SOAP::Recipient.new(nil, 123456) assert_equal({ :'api:recipient' => 123456 }, recipient.to_api_hash) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
messagemedia-soap-0.6.4 | test/test_recipient.rb |
messagemedia-soap-0.6.3 | test/test_recipient.rb |
messagemedia-soap-0.6.2 | test/test_recipient.rb |