Sha256: ba4f75e850edf73ea48254892c568a1e8d72dea046e50938c5cefe93c061e7f6
Contents?: true
Size: 743 Bytes
Versions: 1
Compression:
Stored size: 743 Bytes
Contents
require 'test_helper' class TestShippingAddress < MiniTest::Test def setup node = load_xml_fixture('orders').xpath('//xmlns:ShippingAddress').first @address = ShippingAddress.new(node) end def test_name assert_kind_of String, @address.name end def test_address_lines assert_kind_of Array, @address.address_lines @address.address_lines.each do |line| assert_kind_of String, line end end def test_city assert_kind_of String, @address.city end def test_state_or_region assert_kind_of String, @address.state_or_region end def test_postal_code assert_kind_of String, @address.postal_code end def test_country_code assert_kind_of String, @address.country_code end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mws-orders-0.2.2 | test/mws/orders/test_shipping_address.rb |