Sha256: bdc26d91441bdc1d2cf3f6148b2f6045df9f13568a18100f53db83a7d3438ff9

Contents?: true

Size: 466 Bytes

Versions: 6

Compression:

Stored size: 466 Bytes

Contents

require 'parser_helper'
require 'mws/orders/parsers/payment_execution_detail_item'

class PaymentExecutionDetailItemParserTest < ParserTest
  def setup
    node = fixture('orders/orders').xpath('//xmlns:PaymentExecutionDetailItem').first
    @pedi = MWS::Orders::Parsers::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

6 entries across 6 versions & 1 rubygems

Version Path
peddler-0.6.5 test/mws/orders/parsers/test_payment_execution_detail_item.rb
peddler-0.6.4 test/mws/orders/parsers/test_payment_execution_detail_item.rb
peddler-0.6.3 test/mws/orders/parsers/test_payment_execution_detail_item.rb
peddler-0.6.2 test/mws/orders/parsers/test_payment_execution_detail_item.rb
peddler-0.6.1 test/mws/orders/parsers/test_payment_execution_detail_item.rb
peddler-0.6.0 test/mws/orders/parsers/test_payment_execution_detail_item.rb