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_core-4.0.1 lib/spree/testing_support/factories/promotion_code_factory.rb
solidus_core-4.1.0 lib/spree/testing_support/factories/promotion_code_factory.rb
solidus_core-4.0.0 lib/spree/testing_support/factories/promotion_code_factory.rb