Sha256: 20ffb1c6ecef082809c0c78b570d3b87d9e0b485468a9f8e42ecc6cf3cf4d0e1
Contents?: true
Size: 567 Bytes
Versions: 1
Compression:
Stored size: 567 Bytes
Contents
require "spec_helper" describe AdaptivePayments::CancelPreapprovalRequest do it_behaves_like "a RequestEnvelope" subject { AdaptivePayments::CancelPreapprovalRequest } describe '#operation' do subject { super().operation } it { is_expected.to eq(:CancelPreapproval) } end let(:request) { AdaptivePayments::CancelPreapprovalRequest.new(:preapproval_key => "ABCD-1234") } let(:json) { JSON.parse(request.to_json) } it "maps #preapproval_key to ['preapprovalKey']" do expect(json["preapprovalKey"]).to eq("ABCD-1234") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
creative-pp-adaptive-1.1.1 | spec/public/cancel_preapproval_request_spec.rb |