Sha256: f8a7827c274c262c9fed6e4a745d6b3132c57e2143f841398486b1f97ad38459
Contents?: true
Size: 1.11 KB
Versions: 1
Compression:
Stored size: 1.11 KB
Contents
# frozen_string_literal: true require 'spree/testing_support' Spree::TestingSupport.deprecate_cherry_picking_factory_bot_files FactoryBot.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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_core-2.11.4 | lib/spree/testing_support/factories/payment_method_factory.rb |