Sha256: 626274c869bc6ad43dd6e18658d9fce416ffe95df3f18c4c6609c0756836849d

Contents?: true

Size: 475 Bytes

Versions: 2

Compression:

Stored size: 475 Bytes

Contents

FactoryGirl.define do
  factory :payment, :class => Spree::Payment do
    amount 45.75
    payment_method { FactoryGirl.create(:bogus_payment_method) }
    source { FactoryGirl.build(:credit_card) }
    order { FactoryGirl.create(:order) }
    state 'pending'
    response_code '12345'

  end

  factory :check_payment, :class => Spree::Payment do
    amount 45.75
    payment_method { FactoryGirl.create(:payment_method) }
    order { FactoryGirl.create(:order) }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_core-1.3.2 lib/spree/core/testing_support/factories/payment_factory.rb
spree_core-1.3.1 lib/spree/core/testing_support/factories/payment_factory.rb