Sha256: 7ede673fd3b83d29f88001674187eba4daf897fbcfb6badd8f033eeb1d4a60fa

Contents?: true

Size: 412 Bytes

Versions: 15

Compression:

Stored size: 412 Bytes

Contents

FactoryBot.define do
  factory :client, class: "Comee::Core::Client" do
    user
    sequence(:code) { |n| "#{Faker::Alphanumeric.unique.alpha(number: 8)}-#{n}" }
    name { Faker::Name.name }
    match_code { Faker::Name.name }
    address { Faker::Address.full_address }
    locale { "en" }
    parent { nil }
    consignees { [] }
    shipment_addresses { [] }
    currency
    subsidiary { false }
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
comee_core-0.3.3 spec/factories/comee/core/clients.rb
comee_core-0.3.2 spec/factories/comee/core/clients.rb
comee_core-0.3.1 spec/factories/comee/core/clients.rb
comee_core-0.3.0 spec/factories/comee/core/clients.rb
comee_core-0.2.99 spec/factories/comee/core/clients.rb
comee_core-0.2.98 spec/factories/comee/core/clients.rb
comee_core-0.2.97 spec/factories/comee/core/clients.rb
comee_core-0.2.96 spec/factories/comee/core/clients.rb
comee_core-0.2.95 spec/factories/comee/core/clients.rb
comee_core-0.2.94 spec/factories/comee/core/clients.rb
comee_core-0.2.93 spec/factories/comee/core/clients.rb
comee_core-0.2.92 spec/factories/comee/core/clients.rb
comee_core-0.2.91 spec/factories/comee/core/clients.rb
comee_core-0.2.90 spec/factories/comee/core/clients.rb
comee_core-0.2.89 spec/factories/comee/core/clients.rb