Sha256: daead9bca8cdabde1eefa859f908ed6a03b006d75c00a9414494708c64df4a3c
Contents?: true
Size: 893 Bytes
Versions: 2
Compression:
Stored size: 893 Bytes
Contents
FactoryBot.define do factory :braintree_vzero_payment, class: Spree::Payment do amount { 12.73 } association(:payment_method, factory: :vzero_gateway) association(:source, factory: :braintree_checkout) order state { 'checkout' } braintree_nonce { 'fake-valid-nonce' } end factory :braintree_vzero_paypal_payment, class: Spree::Payment do amount { 0 } association(:payment_method, factory: :vzero_paypal_gateway) association(:source, factory: :braintree_checkout) order state { 'checkout' } braintree_nonce { 'fake-valid-nonce' } end factory :braintree_vzero_failed_paypal_payment, class: Spree::Payment do amount { 0 } association(:payment_method, factory: :vzero_paypal_gateway) association(:source, factory: :braintree_checkout) order state { 'checkout' } braintree_nonce { 'fake-invalid-nonce' } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_braintree_vzero-3.6.0 | spec/factories/payment_factory_decorator.rb |
spree_braintree_vzero-3.5.1 | spec/factories/payment_factory_decorator.rb |