Sha256: 9a8e7ff044c03d526b5fb9a9d3148128bb9f7152041e6e0d45ddf4844b7f63b4

Contents?: true

Size: 453 Bytes

Versions: 2

Compression:

Stored size: 453 Bytes

Contents

# frozen_string_literal: true

require 'test_helper'

class TestPaymentExecutionDetailItem < MiniTest::Test
  def setup
    node =
      load_xml_fixture('orders').xpath('//xmlns:PaymentExecutionDetailItem')
                                .first
    @pedi = PaymentExecutionDetailItem.new(node)
  end

  def test_payment
    assert_kind_of Money, @pedi.payment
  end

  def test_payment_method
    assert_kind_of String, @pedi.payment_method
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mws-orders-0.3.1 test/mws/orders/test_payment_execution_detail_item.rb
mws-orders-0.3.0 test/mws/orders/test_payment_execution_detail_item.rb