Sha256: 2cd3f3ba0cec93b0157672e59ac3475de6865eec5ffe2cb77ff9928fa42d0bdf

Contents?: true

Size: 420 Bytes

Versions: 35

Compression:

Stored size: 420 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'
  end

  factory :check_payment, class: Spree::Payment do
    amount 45.75
    association(:payment_method, factory: :check_payment_method)
    order
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
spree_core-2.4.0.rc3 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.4.0.rc2 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.4.0.rc1 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.3.4 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.2.6 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.3.3 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.3.2 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.2.5 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.3.1 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.2.4 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.2.3 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.3.0 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.2.2 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.2.1 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.2.0 lib/spree/testing_support/factories/payment_factory.rb