Sha256: ab864fdab36a02b781e415a254d61aa9f55a9639e0b674da647c32cd90cf851d

Contents?: true

Size: 374 Bytes

Versions: 6

Compression:

Stored size: 374 Bytes

Contents

require "spec_helper"

describe AdaptivePayments::PreapprovalResponse do
  it_behaves_like "a ResponseEnvelope"
  it_behaves_like "a FaultMessage"

  let(:response) do
    AdaptivePayments::PreapprovalResponse.from_json('{"preapprovalKey":"SOME-KEY"}')
  end

  it "maps ['preapprovalKey'] to #preapproval_key" do
    response.preapproval_key.should == "SOME-KEY"
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pp-adaptive-1.0.0 spec/public/preapproval_response_spec.rb
pp-adaptive-0.0.6 spec/public/preapproval_response_spec.rb
pp-adaptive-0.0.5 spec/public/preapproval_response_spec.rb
pp-adaptive-0.0.4 spec/public/preapproval_response_spec.rb
pp-adaptive-0.0.3 spec/public/preapproval_response_spec.rb
pp-adaptive-0.0.2 spec/public/preapproval_response_spec.rb