Sha256: f4a5400a46675b0f741cc67928ca46cc32c99721b2841ed40ff6d2e58b5a2008
Contents?: true
Size: 737 Bytes
Versions: 7
Compression:
Stored size: 737 Bytes
Contents
require 'spec_helper.rb' describe Paypal::Payment::Request::Item do let :instance do Paypal::Payment::Request::Item.new( :name => 'Name', :description => 'Description', :amount => 10, :quantity => 5, :category => :Digital, :number => '1' ) end describe '#to_params' do it 'should handle Recurring Profile activation parameters' do expect(instance.to_params(1)).to eq({ :L_PAYMENTREQUEST_1_NAME0 => 'Name', :L_PAYMENTREQUEST_1_DESC0 => 'Description', :L_PAYMENTREQUEST_1_AMT0 => '10.00', :L_PAYMENTREQUEST_1_QTY0 => 5, :L_PAYMENTREQUEST_1_ITEMCATEGORY0 => :Digital, :L_PAYMENTREQUEST_1_NUMBER0 => '1' }) end end end
Version data entries
7 entries across 7 versions & 1 rubygems