Sha256: 5b7c3cee5a3a9d5b8e6c5cec98172775fca7058a0fb60ca1bafe0f4f4b8e0f07
Contents?: true
Size: 770 Bytes
Versions: 1
Compression:
Stored size: 770 Bytes
Contents
# frozen_string_literal: true require 'test_helper' class TestShippingAddress < MiniTest::Test def setup node = load_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.4.0 | test/mws/orders/test_shipping_address.rb |