Sha256: e0ccdd8e9e2507005e23ba97b375dfbf047358917a13232c64ab56ed7ec591f1

Contents?: true

Size: 427 Bytes

Versions: 28

Compression:

Stored size: 427 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 }
    address { Faker::Address.full_address }
    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

28 entries across 28 versions & 1 rubygems

Version Path
comee_core-0.3.4 spec/factories/comee/core/suppliers.rb
comee_core-0.3.3 spec/factories/comee/core/suppliers.rb
comee_core-0.3.2 spec/factories/comee/core/suppliers.rb
comee_core-0.3.1 spec/factories/comee/core/suppliers.rb
comee_core-0.3.0 spec/factories/comee/core/suppliers.rb
comee_core-0.2.99 spec/factories/comee/core/suppliers.rb
comee_core-0.2.98 spec/factories/comee/core/suppliers.rb
comee_core-0.2.97 spec/factories/comee/core/suppliers.rb
comee_core-0.2.96 spec/factories/comee/core/suppliers.rb
comee_core-0.2.95 spec/factories/comee/core/suppliers.rb
comee_core-0.2.94 spec/factories/comee/core/suppliers.rb
comee_core-0.2.93 spec/factories/comee/core/suppliers.rb
comee_core-0.2.92 spec/factories/comee/core/suppliers.rb
comee_core-0.2.91 spec/factories/comee/core/suppliers.rb
comee_core-0.2.90 spec/factories/comee/core/suppliers.rb
comee_core-0.2.89 spec/factories/comee/core/suppliers.rb
comee_core-0.2.88 spec/factories/comee/core/suppliers.rb
comee_core-0.2.87 spec/factories/comee/core/suppliers.rb
comee_core-0.2.86 spec/factories/comee/core/suppliers.rb
comee_core-0.2.85 spec/factories/comee/core/suppliers.rb