Sha256: 82ad5e4ffed347ed6088865a6d77c69a14c32d7b8ff952df86f485fa0b3898ca

Contents?: true

Size: 248 Bytes

Versions: 6

Compression:

Stored size: 248 Bytes

Contents

require 'spree/testing_support/sequences'
require 'spree/testing_support/factories/promotion_factory'

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
solidus_core-2.5.2 lib/spree/testing_support/factories/promotion_code_factory.rb
solidus_core-2.5.1 lib/spree/testing_support/factories/promotion_code_factory.rb
solidus_core-2.5.0 lib/spree/testing_support/factories/promotion_code_factory.rb
solidus_core-2.5.0.rc1 lib/spree/testing_support/factories/promotion_code_factory.rb
solidus_core-2.5.0.beta2 lib/spree/testing_support/factories/promotion_code_factory.rb
solidus_core-2.5.0.beta1 lib/spree/testing_support/factories/promotion_code_factory.rb