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