Sha256: 0d553cbc9b1e46f49291030bf2fc4bb8199397a98d6436677f95e4891f02c3ad
Contents?: true
Size: 681 Bytes
Versions: 19
Compression:
Stored size: 681 Bytes
Contents
require 'helper' module Mollie class Settlement class PaymentTest < Test::Unit::TestCase def test_kind_of_payment payment = Mollie::Settlement::Payment.new({}) assert_kind_of Mollie::Payment, payment end def test_list_payments stub_request(:get, 'https://api.mollie.com/v2/settlements/set-id/payments') .to_return(status: 200, body: %({"_embedded" : { "payments" : [{"id":"pay-id", "settlement_id":"set-id"}]}}), headers: {}) payments = Payment.all(settlement_id: 'set-id') assert_equal 'pay-id', payments.first.id assert_equal 'set-id', payments.first.settlement_id end end end end
Version data entries
19 entries across 19 versions & 1 rubygems