Sha256: f61ea7d80be78ef6afd8c2d9c63e71ae10882a5c6e7f40d688c6c0ff8b718434

Contents?: true

Size: 284 Bytes

Versions: 5

Compression:

Stored size: 284 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
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
comee_core-0.1.36 spec/factories/comee/core/products.rb
comee_core-0.1.35 spec/factories/comee/core/products.rb
comee_core-0.1.34 spec/factories/comee/core/products.rb
comee_core-0.1.33 spec/factories/comee/core/products.rb
comee_core-0.1.32 spec/factories/comee/core/products.rb