Sha256: 522aa0d4db3da32e4e85bd0127d126c06f83b87e0493c44e5e769989b2ea3784
Contents?: true
Size: 807 Bytes
Versions: 2
Compression:
Stored size: 807 Bytes
Contents
require 'helper' class TestMessage < Test::Unit::TestCase should "create a valid xml representation of a message" do target = Esendex::Message.new("07777111333", "Hello World") actual = target.xml_node assert_equal "07777111333", actual.at_xpath('//message/to').content assert_equal "Hello World", actual.at_xpath('//message/body').content end should "create a valid xml representation if from specified" do target = Esendex::Message.new("07777111333", "Hello World") target.from = "BilgeInc" actual = target.xml_node assert_equal "07777111333", actual.at_xpath('//message/to').content assert_equal "Hello World", actual.at_xpath('//message/body').content assert_equal "BilgeInc", actual.at_xpath('//message/from').content end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
esendex-0.1.1 | test/test_message.rb |
esendex-0.1.0 | test/test_message.rb |