Sha256: bcaf9d3595eb54a74f8497a64aa4836436da970c939e9e4d0356a98419b371ee

Contents?: true

Size: 455 Bytes

Versions: 31

Compression:

Stored size: 455 Bytes

Contents

FactoryBot.define do
  factory :company, class: Ecom::Core::Company do
    sequence :code do |n|
      "CCode#{n}"
    end
    sequence :name do |n|
      "CName#{n}"
    end
    address { FFaker::Address.street_address }
    telephone { FFaker::PhoneNumber.phone_number }
    email { FFaker::Internet.email }
    settings do
      {
        payroll_periods: [{ order: 1, date: 25, comparison: :exact }],
        period_count: 1
      }
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
ecom_core-1.2.31 spec/factories/ecom/core/companies.rb
ecom_core-1.2.30 spec/factories/ecom/core/companies.rb
ecom_core-1.2.29 spec/factories/ecom/core/companies.rb
ecom_core-1.2.28 spec/factories/ecom/core/companies.rb
ecom_core-1.2.27 spec/factories/ecom/core/companies.rb
ecom_core-1.2.26 spec/factories/ecom/core/companies.rb
ecom_core-1.2.25 spec/factories/ecom/core/companies.rb
ecom_core-1.2.24 spec/factories/ecom/core/companies.rb
ecom_core-1.2.23 spec/factories/ecom/core/companies.rb
ecom_core-1.2.22 spec/factories/ecom/core/companies.rb
ecom_core-1.2.21 spec/factories/ecom/core/companies.rb