Sha256: 2d61e9f05074a89219d510d99351ca83371f94a4e20c6479dee5c430c337d74d
Contents?: true
Size: 665 Bytes
Versions: 25
Compression:
Stored size: 665 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 ) end describe '#to_params' do it 'should handle Recurring Profile activation parameters' do instance.to_params(1).should == { :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 } end end end
Version data entries
25 entries across 25 versions & 1 rubygems