Sha256: 14d063624b83b1f11063a24afb81750ed12b411d8a1b16fdb4b11fd6c074ddf5

Contents?: true

Size: 531 Bytes

Versions: 48

Compression:

Stored size: 531 Bytes

Contents

# frozen_string_literal: true

require 'spree/testing_support/factories/store_credit_category_factory'
require 'spree/testing_support/factories/store_credit_type_factory'
require 'spree/testing_support/factories/user_factory'

FactoryBot.define do
  factory :store_credit, class: 'Spree::StoreCredit' do
    user
    association :created_by, factory: :user
    association :category, factory: :store_credit_category
    amount { 150.00 }
    currency { "USD" }
    association :credit_type, factory: :primary_credit_type
  end
end

Version data entries

48 entries across 48 versions & 2 rubygems

Version Path
solidus_core-2.10.5 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-2.11.3 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-2.11.2 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-2.11.1 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-2.10.3 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-2.11.0 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-2.10.2 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-2.9.6 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-2.8.6 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-2.10.1 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-2.9.5 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-2.10.0 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-2.9.4 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-2.6.6 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-2.7.4 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-2.8.5 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-2.9.3 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-2.9.2 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-2.10.0.beta1 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-2.7.3 lib/spree/testing_support/factories/store_credit_factory.rb