Sha256: a378f1d2d66a6da6233dc07f5fe8bea5146f9d165dffe1ca0b3602942456c0b8

Contents?: true

Size: 305 Bytes

Versions: 4

Compression:

Stored size: 305 Bytes

Contents

FactoryBot.define do
  factory :product, class: "Comee::Core::Product" do
    sequence(:code) { |n| "#{Faker::Alphanumeric.unique.alpha(number: 6)}-#{n}" }
    name { Faker::Name.name }
    description { Faker::Lorem.sentence }
    metadata { {} }
    product_type
    unit
    ancestry { nil }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
comee_core-0.1.40 spec/factories/comee/core/products.rb
comee_core-0.1.39 spec/factories/comee/core/products.rb
comee_core-0.1.38 spec/factories/comee/core/products.rb
comee_core-0.1.37 spec/factories/comee/core/products.rb