Sha256: 3f0f4f3c376e15295a3b6eb23f710194fd35e97a73af0689ef67b8434c597467

Contents?: true

Size: 631 Bytes

Versions: 1

Compression:

Stored size: 631 Bytes

Contents

require 'test_helper'
require 'mws/off_amazon_payments/client'

class TestMWSOffAmazonPaymentsClient < MiniTest::Test
  def setup
    @client = MWS::OffAmazonPayments::Client.new
  end

  def test_sandbox
    @client.marketplace_id = 'A1F83G8C2ARO7P'
    refute_includes @client.aws_endpoint, 'Sandbox'
    assert_includes @client.sandbox.aws_endpoint, 'Sandbox'
  end

  def test_gets_capture_details
    @client.stub(:run, nil) do
      @client.get_capture_details('1')
      assert_equal 'GetCaptureDetails', @client.operation.fetch('Action')
      assert_equal '1', @client.operation.fetch('AmazonCaptureId')
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
peddler-0.12.4 test/unit/mws/test_off_amazon_payments_client.rb