Sha256: ca979a96e177f3c63501addfda910d5a0b7ea983928bfa3444c2dfc8118f6c07

Contents?: true

Size: 888 Bytes

Versions: 5

Compression:

Stored size: 888 Bytes

Contents

FactoryBot.define do
  factory :project, class: 'Ecom::Model::Project' do
    name { FFaker::Name.name }
    description { FFaker::Name.name }
    location { FFaker::Name.name }
    objective { FFaker::Name.name }
    project_scope { FFaker::Name.name }
    association :employer, factory: :stakeholder
    association :contractor, factory: :stakeholder
    association :consultant, factory: :stakeholder
    association :project_manager, factory: :stakeholder
    association :task_template
    contract_number { FFaker::Name.name }
    date_contract_signed { 30.days.ago }
    commencement_date { 1.day.ago }
    completion_date { Time.now.next_month }
    contract_amount { FFaker::Random.rand(1_000_000..9_999_999) }
    advance_payment { FFaker::Random.rand(0..100) }
    retention { FFaker::Random.rand(0..100) }
    remark { FFaker::Name.name }
    association :currency
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ecom_model-2.0.4 spec/factories/ecom/model/projects.rb
ecom_model-2.0.3 spec/factories/ecom/model/projects.rb
ecom_model-2.0.2 spec/factories/ecom/model/projects.rb
ecom_model-2.0.1 spec/factories/ecom/model/projects.rb
ecom_model-2.0.0 spec/factories/ecom/model/projects.rb