Sha256: 7ae985e2e9354f52343a79f013a33941e7facc9565e2ff7caac1ee84e108cc38

Contents?: true

Size: 743 Bytes

Versions: 4

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

4 entries across 4 versions & 1 rubygems

Version Path
mws-orders-0.2.1 test/mws/orders/test_shipping_address.rb
mws-orders-0.2.0 test/mws/orders/test_shipping_address.rb
mws-orders-0.1.1 test/mws/orders/test_shipping_address.rb
mws-orders-0.1.0 test/mws/orders/test_shipping_address.rb