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.0.2 lib/spree/testing_support/factories/store_credit_category_factory.rb
solidus_core-4.0.1 lib/spree/testing_support/factories/store_credit_category_factory.rb
solidus_core-4.1.0 lib/spree/testing_support/factories/store_credit_category_factory.rb
solidus_core-4.0.0 lib/spree/testing_support/factories/store_credit_category_factory.rb
solidus_core-2.11.3 lib/spree/testing_support/factories/store_credit_category_factory.rb
solidus_core-2.11.2 lib/spree/testing_support/factories/store_credit_category_factory.rb
solidus_core-2.11.1 lib/spree/testing_support/factories/store_credit_category_factory.rb
solidus_core-2.11.0 lib/spree/testing_support/factories/store_credit_category_factory.rb