Sha256: 29869ff4a53b30738e69ef8ab4683b453bec486ff2b04f1bbcab3b8cb6231387

Contents?: true

Size: 491 Bytes

Versions: 39

Compression:

Stored size: 491 Bytes

Contents

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'

FactoryGirl.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

39 entries across 39 versions & 1 rubygems

Version Path
solidus_core-2.3.1 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-2.2.2 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-2.1.1 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-2.0.3 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-1.4.2 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-1.3.2 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-1.2.3 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-2.3.0 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-2.3.0.rc3 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-2.3.0.rc2 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-2.3.0.rc1 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-2.3.0.beta1 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-2.0.2 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-1.4.1 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-2.2.1 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-2.2.0 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-2.2.0.rc1 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-2.2.0.beta1 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-2.1.0 lib/spree/testing_support/factories/store_credit_factory.rb
solidus_core-2.1.0.rc1 lib/spree/testing_support/factories/store_credit_factory.rb