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