Sha256: 9b716603c14860650644b3329ee47729bf8d6b5b79936895d1d45d23d494b663

Contents?: true

Size: 176 Bytes

Versions: 23

Compression:

Stored size: 176 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :promotion_code, class: 'Spree::PromotionCode' do
    promotion
    sequence(:value) { |i| "code#{i}" }
  end
end

Version data entries

23 entries across 23 versions & 2 rubygems

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