Sha256: 70f7cdb4bc519d764fa50d88c7548df6ce9ff69f22f2435255ca1eff7117466f
Contents?: true
Size: 774 Bytes
Versions: 2
Compression:
Stored size: 774 Bytes
Contents
# frozen_string_literal: true 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mws-orders-0.3.1 | test/mws/orders/test_shipping_address.rb |
mws-orders-0.3.0 | test/mws/orders/test_shipping_address.rb |