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.3.13 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.2.14 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.3.12 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.2.13 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.3.11 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.2.12 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.3.10 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.3.9 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.2.11 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.2.10 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.3.8 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.3.7 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.2.9 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.4.2 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.3.6 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.2.8 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.4.1 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.4.0 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.3.5 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.2.7 lib/spree/testing_support/factories/payment_factory.rb