Sha256: 79d8fc3dab6f05b1970193aa2d8b72f075d2151d31ca107170d2313b66a9f8dd

Contents?: true

Size: 383 Bytes

Versions: 11

Compression:

Stored size: 383 Bytes

Contents

FactoryBot.define do
  factory :supplier, class: "Comee::Core::Supplier" do
    sequence(:code) { |n| "#{Faker::Alphanumeric.alpha(number: 8)}-#{n}" }
    name { Faker::Name.name }
    locale { "en" }
    payment_terms { Faker::Lorem.word }
    vat_number { Faker::Alphanumeric.alpha(number: 8) }
    tax_code { Faker::Alphanumeric.alpha(number: 8) }
    user
    currency
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
comee_core-0.3.15 spec/factories/comee/core/suppliers.rb
comee_core-0.3.14 spec/factories/comee/core/suppliers.rb
comee_core-0.3.13 spec/factories/comee/core/suppliers.rb
comee_core-0.3.12 spec/factories/comee/core/suppliers.rb
comee_core-0.3.11 spec/factories/comee/core/suppliers.rb
comee_core-0.3.10 spec/factories/comee/core/suppliers.rb
comee_core-0.3.9 spec/factories/comee/core/suppliers.rb
comee_core-0.3.8 spec/factories/comee/core/suppliers.rb
comee_core-0.3.7 spec/factories/comee/core/suppliers.rb
comee_core-0.3.6 spec/factories/comee/core/suppliers.rb
comee_core-0.3.5 spec/factories/comee/core/suppliers.rb