Sha256: 79a45ab352d82ae997a55b5f8c640f0cb9d00a897b0046ba1ec4e3d7a59626b3

Contents?: true

Size: 464 Bytes

Versions: 6

Compression:

Stored size: 464 Bytes

Contents

require "spec_helper"

describe AdaptivePayments::GetPaymentOptionsRequest do
  it_behaves_like "a RequestEnvelope"

  subject         { AdaptivePayments::GetPaymentOptionsRequest }
  its(:operation) { should == :GetPaymentOptions }

  let(:request) { AdaptivePayments::GetPaymentOptionsRequest.new(:pay_key => "ABCD-1234") }
  let(:json)    { JSON.parse(request.to_json) }

  it "maps #pay_key to ['payKey']" do
    json["payKey"].should == "ABCD-1234"
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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