Sha256: abc86b265e216501af2651fb8a328f6f8645dc917776997b5a971f69d88a956c
Contents?: true
Size: 668 Bytes
Versions: 46
Compression:
Stored size: 668 Bytes
Contents
require 'spec_helper' module GoTransverseTractApi RSpec.describe BillingAccount::Refund do before(:each) { http_auth } let(:response) { {a: 'b', c: 'd'} } let(:eid) { '48406' } context ".create_refund" do it "creates a refund to the account" do data = { amount: '47.00', description: 'Refund Create', original_payment: { eid: '123' }, refund_reason: { eid: '456' } } allow(subject).to receive(:create_refund).with(data).and_return(response) expect(subject.create_refund(data)).to eq(response) end end end end
Version data entries
46 entries across 46 versions & 1 rubygems