Sha256: a8c250cd7043e6e1b25379079f996e8c3bbeff4d667c2b8534b67c3abd298f5a
Contents?: true
Size: 789 Bytes
Versions: 45
Compression:
Stored size: 789 Bytes
Contents
FactoryGirl.define do factory :payment, class: Spree::Payment do amount 45.75 association(:payment_method, factory: :credit_card_payment_method) association(:source, factory: :credit_card) order state 'checkout' response_code '12345' factory :payment_with_refund do state 'completed' after :create do |payment| create(:refund, amount: 5, payment: payment) end end end factory :check_payment, class: Spree::Payment do amount 45.75 association(:payment_method, factory: :check_payment_method) order end factory :store_credit_payment, class: Spree::Payment, parent: :payment do association(:payment_method, factory: :store_credit_payment_method) association(:source, factory: :store_credit) end end
Version data entries
45 entries across 45 versions & 2 rubygems