Sha256: e0a7278e16f6107ef4c1ba5f924eca09156caa966925e3edece92cca318281d5
Contents?: true
Size: 680 Bytes
Versions: 1
Compression:
Stored size: 680 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gotransverse-tract-api-0.5.3 | spec/gotransverse-tract-api/billing_account/refund_spec.rb |