Sha256: 4cf0da221ac310b3d1edb23a5759c72b9e3389ab524f89dc2c744c2aa4f92b39

Contents?: true

Size: 339 Bytes

Versions: 28

Compression:

Stored size: 339 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :store_credit_category, class: 'Spree::StoreCreditCategory' do
    name { "Exchange" }

    trait :reimbursement do
      name { Spree::StoreCreditCategory::REIMBURSEMENT }
    end

    trait :gift_card do
      name { Spree::StoreCreditCategory::GIFT_CARD }
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
solidus_core-4.4.2 lib/spree/testing_support/factories/store_credit_category_factory.rb
solidus_core-4.4.1 lib/spree/testing_support/factories/store_credit_category_factory.rb
solidus_core-4.4.0 lib/spree/testing_support/factories/store_credit_category_factory.rb
solidus_core-4.3.4 lib/spree/testing_support/factories/store_credit_category_factory.rb
solidus_core-4.2.4 lib/spree/testing_support/factories/store_credit_category_factory.rb
solidus_core-4.1.5 lib/spree/testing_support/factories/store_credit_category_factory.rb
solidus_core-4.3.3 lib/spree/testing_support/factories/store_credit_category_factory.rb
solidus_core-4.3.2 lib/spree/testing_support/factories/store_credit_category_factory.rb
solidus_core-4.1.4 lib/spree/testing_support/factories/store_credit_category_factory.rb
solidus_core-4.3.1 lib/spree/testing_support/factories/store_credit_category_factory.rb
solidus_core-4.3.0 lib/spree/testing_support/factories/store_credit_category_factory.rb
solidus_core-4.2.3 lib/spree/testing_support/factories/store_credit_category_factory.rb
solidus_core-4.1.3 lib/spree/testing_support/factories/store_credit_category_factory.rb
solidus_core-4.0.4 lib/spree/testing_support/factories/store_credit_category_factory.rb
solidus_core-4.0.3 lib/spree/testing_support/factories/store_credit_category_factory.rb
solidus_core-4.1.2 lib/spree/testing_support/factories/store_credit_category_factory.rb
solidus_core-4.2.2 lib/spree/testing_support/factories/store_credit_category_factory.rb
solidus_core-4.2.1 lib/spree/testing_support/factories/store_credit_category_factory.rb
solidus_core-4.2.0 lib/spree/testing_support/factories/store_credit_category_factory.rb
solidus_core-4.1.1 lib/spree/testing_support/factories/store_credit_category_factory.rb