Sha256: ea09da5b405384cea083a90d870234e81459de9f731796690da50d03a3d2024c
Contents?: true
Size: 638 Bytes
Versions: 3
Compression:
Stored size: 638 Bytes
Contents
require 'helper' module Mollie class Payment class ChargebackTest < Test::Unit::TestCase def test_kind_of_refund chargeback = Mollie::Payment::Chargeback.new({}) assert_kind_of Mollie::Chargeback, chargeback end def test_list_chargebacks stub_request(:get, "https://api.mollie.com/v2/payments/pay-id/chargebacks") .to_return(:status => 200, :body => %{{"_embedded" : {"chargebacks" : [{"id":"re-id"}]}}}, :headers => {}) chargebacks = Mollie::Payment::Chargeback.all(payment_id: "pay-id") assert_equal "re-id", chargebacks.first.id end end end end
Version data entries
3 entries across 3 versions & 1 rubygems