Sha256: 61696b50669ca162ce9c169c8a02ff97fe010f515b65a08f9dbf77c8d7abf645
Contents?: true
Size: 753 Bytes
Versions: 2
Compression:
Stored size: 753 Bytes
Contents
require_relative 'test_helper' class ShippingAddressParserTest < ParserTest def setup node = fixture('orders').xpath('//xmlns:ShippingAddress').first @address = Parser::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.0.2 | test/parsers/shipping_address_test.rb |
mws-orders-0.0.1 | test/parsers/shipping_address_test.rb |