Sha256: 6ff4b03009212f09e3c514c303ebefe4c0a10172c8c230478cb6dc923ebcc2d6

Contents?: true

Size: 368 Bytes

Versions: 28

Compression:

Stored size: 368 Bytes

Contents

FactoryGirl.define do
  factory :payment, class: Spree::Payment do
    amount 45.75
    association(:payment_method, factory: :bogus_payment_method)
    association(:source, factory: :credit_card)
    order
    state 'checkout'
    response_code '12345'
  end

  factory :check_payment, class: Spree::Payment do
    amount 45.75
    payment_method
    order
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
spree_core-2.1.12 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.1.11 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.1.10 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.0.13 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.1.9 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.1.8 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.0.12 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.1.7 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.0.11 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.0.10 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.1.6 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.1.5 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.0.9 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.1.4 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.0.8 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.1.3 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.0.7 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.1.2 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.0.6 lib/spree/testing_support/factories/payment_factory.rb
spree_core-2.1.1 lib/spree/testing_support/factories/payment_factory.rb