Sha256: 766b14042d820a70b1c529bc209a362a806595d7b5a03aa33a27697b814b0e07

Contents?: true

Size: 471 Bytes

Versions: 7

Compression:

Stored size: 471 Bytes

Contents

require 'spec_helper'

describe Paypal::Payment::Recurring::Activation do
  let :instance do
    Paypal::Payment::Recurring::Activation.new(
      :initial_amount => 100,
      :failed_action => 'ContinueOnFailure'
    )
  end

  describe '#to_params' do
    it 'should handle Recurring Profile activation parameters' do
      expect(instance.to_params).to eq({
        :INITAMT => '100.00',
        :FAILEDINITAMTACTION => 'ContinueOnFailure'
      })
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ianfleeton-paypal-express-1.0.0 spec/paypal/payment/recurring/activation_spec.rb
ianfleeton-paypal-express-0.8.7 spec/paypal/payment/recurring/activation_spec.rb
ianfleeton-paypal-express-0.8.6 spec/paypal/payment/recurring/activation_spec.rb
ianfleeton-paypal-express-0.8.5 spec/paypal/payment/recurring/activation_spec.rb
ianfleeton-paypal-express-0.8.4 spec/paypal/payment/recurring/activation_spec.rb
ianfleeton-paypal-express-0.8.3 spec/paypal/payment/recurring/activation_spec.rb
ianfleeton-paypal-express-0.8.2 spec/paypal/payment/recurring/activation_spec.rb