Sha256: a3faf57e4ffefc07ad55fd203b17465dc410c1ad8b0c6c909e5f13c72d0fa50d

Contents?: true

Size: 942 Bytes

Versions: 6

Compression:

Stored size: 942 Bytes

Contents

FactoryGirl.define do
  factory :payment_method, aliases: [:credit_card_payment_method], class: Spree::PaymentMethod::BogusCreditCard do
    name 'Credit Card'
    available_to_admin true
    available_to_users true
  end

  factory :check_payment_method, class: Spree::PaymentMethod::Check do
    name 'Check'
    available_to_admin true
    available_to_users true
  end

  # authorize.net was moved to spree_gateway.
  # Leaving this factory in place with bogus in case anyone is using it.
  factory :simple_credit_card_payment_method, class: Spree::PaymentMethod::SimpleBogusCreditCard do
    name 'Credit Card'
    available_to_admin true
    available_to_users true
  end

  factory :store_credit_payment_method, class: Spree::PaymentMethod::StoreCredit do
    name          "Store Credit"
    description   "Store Credit"
    active        true
    available_to_admin false
    available_to_users false
    auto_capture true
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
solidus_core-2.3.1 lib/spree/testing_support/factories/payment_method_factory.rb
solidus_core-2.3.0 lib/spree/testing_support/factories/payment_method_factory.rb
solidus_core-2.3.0.rc3 lib/spree/testing_support/factories/payment_method_factory.rb
solidus_core-2.3.0.rc2 lib/spree/testing_support/factories/payment_method_factory.rb
solidus_core-2.3.0.rc1 lib/spree/testing_support/factories/payment_method_factory.rb
solidus_core-2.3.0.beta1 lib/spree/testing_support/factories/payment_method_factory.rb