Sha256: fe60c592fb85be6ac881e865f7362f27b42bdb68df304400bce317eb58d38a68
Contents?: true
Size: 600 Bytes
Versions: 19
Compression:
Stored size: 600 Bytes
Contents
require 'helper' module Mollie class Settlement class RefundTest < Test::Unit::TestCase def test_kind_of_refund refund = Mollie::Settlement::Refund.new({}) assert_kind_of Mollie::Refund, refund end def test_list_refunds stub_request(:get, 'https://api.mollie.com/v2/settlements/set-id/refunds') .to_return(status: 200, body: %({"_embedded" : {"refunds" : [{"id":"re-id"}]}}), headers: {}) refunds = Mollie::Settlement::Refund.all(settlement_id: 'set-id') assert_equal 're-id', refunds.first.id end end end end
Version data entries
19 entries across 19 versions & 1 rubygems