Sha256: 06cf3b9126c0c72cd4c2d6b173d2ceec505ee994b80cd828d6b50c0caec1dc32
Contents?: true
Size: 678 Bytes
Versions: 6
Compression:
Stored size: 678 Bytes
Contents
require "spec_helper" describe AdaptivePayments::PreapprovalDetailsRequest do it_behaves_like "a RequestEnvelope" subject { AdaptivePayments::PreapprovalDetailsRequest } its(:operation) { should == :PreapprovalDetails } let(:request) do AdaptivePayments::PreapprovalDetailsRequest.new( :preapproval_key => "ABCDEFG-1234", :get_billing_address => true ) end let(:json) { JSON.parse(request.to_json) } it "maps #preapproval_key to ['preapprovalKey']" do json["preapprovalKey"].should == "ABCDEFG-1234" end it "maps #get_billing_address to ['getBillingAddress']" do json["getBillingAddress"].should == true end end
Version data entries
6 entries across 6 versions & 1 rubygems