Sha256: 96f4777a031b5244a1cab044076f943601acc50cf2319367ba9470b83730cde9

Contents?: true

Size: 476 Bytes

Versions: 43

Compression:

Stored size: 476 Bytes

Contents

FactoryGirl.define do
  sequence(:store_credits_order_number) { |n| "R1000#{n}" }

  factory :store_credit, class: Spree::StoreCredit do
    user
    created_by { create(:user) }
    category { create(:store_credit_category) }
    amount { 150.00 }
    currency { 'USD' }
    credit_type { create(:primary_credit_type) }
  end

  factory :store_credits_order_without_user, class: Spree::Order do
    number { generate(:store_credits_order_number) }
    bill_address
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
spree_core-3.1.14 lib/spree/testing_support/factories/store_credit_factory.rb
spree_core-3.1.13 lib/spree/testing_support/factories/store_credit_factory.rb
spree_core-3.3.4 lib/spree/testing_support/factories/store_credit_factory.rb
spree_core-3.2.7 lib/spree/testing_support/factories/store_credit_factory.rb
spree_core-3.1.12 lib/spree/testing_support/factories/store_credit_factory.rb
spree_core-3.3.3 lib/spree/testing_support/factories/store_credit_factory.rb
spree_core-3.2.6 lib/spree/testing_support/factories/store_credit_factory.rb
spree_core-3.1.11 lib/spree/testing_support/factories/store_credit_factory.rb
spree_core-3.4.1 lib/spree/testing_support/factories/store_credit_factory.rb
spree_core-3.4.0 lib/spree/testing_support/factories/store_credit_factory.rb
spree_core-3.4.0.rc2 lib/spree/testing_support/factories/store_credit_factory.rb
spree_core-3.1.10 lib/spree/testing_support/factories/store_credit_factory.rb
spree_core-3.4.0.rc1 lib/spree/testing_support/factories/store_credit_factory.rb
spree_core-3.3.2 lib/spree/testing_support/factories/store_credit_factory.rb
spree_core-3.2.5 lib/spree/testing_support/factories/store_credit_factory.rb
spree_core-3.1.9 lib/spree/testing_support/factories/store_credit_factory.rb
spree_core-3.3.1 lib/spree/testing_support/factories/store_credit_factory.rb
spree_core-3.2.4 lib/spree/testing_support/factories/store_credit_factory.rb
spree_core-3.1.8 lib/spree/testing_support/factories/store_credit_factory.rb
spree_core-3.3.0 lib/spree/testing_support/factories/store_credit_factory.rb