Sha256: 152ac00e7bb85939ca351d6e2dce81c6f2e17aaf4dba922de065e0f6903d2678

Contents?: true

Size: 729 Bytes

Versions: 2

Compression:

Stored size: 729 Bytes

Contents

require 'spec_helper'

module GoTransverseTractApi

  RSpec.describe BillingAccount::Payment do
    before(:each) { http_auth }

    context ".find_by_eid" do
      it "returns a payment for the given eid" do
        #data = described_class.find_by_eid(1)
        #expect(data['eid']).to eq('1')
      end
    end

    context ".referrer_token" do
      it "returns a token" do
        error_url = "http://smartzip-error.com"
        cancel_url = "http://smartzip-cancel.com"
        complete_url = "http://smartzip-complete.com"

        actual_response = described_class.referrer_token(error_url,cancel_url,complete_url)
        expect(actual_response['referrer']['referrerToken']).to_not be_nil
      end

    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gotransverse-tract-api-0.3.4 spec/gotransverse-tract-api/billing_account/payment_spec.rb
gotransverse-tract-api-0.3.3 spec/gotransverse-tract-api/billing_account/payment_spec.rb