Sha256: aa84a10a799f9cec428d31cbd5131f9273769ad6d14d1a02463449e57adda697

Contents?: true

Size: 910 Bytes

Versions: 10

Compression:

Stored size: 910 Bytes

Contents

FactoryBot.define do
  factory :project, class: Ecom::Core::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
    association :company
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ecom_core-1.2.16 spec/factories/ecom/core/projects.rb
ecom_core-1.2.15 spec/factories/ecom/core/projects.rb
ecom_core-1.2.14 spec/factories/ecom/core/projects.rb
ecom_core-1.2.13 spec/factories/ecom/core/projects.rb
ecom_core-1.2.12 spec/factories/ecom/core/projects.rb
ecom_core-1.2.11 spec/factories/ecom/core/projects.rb
ecom_core-1.2.10 spec/factories/ecom/core/projects.rb
ecom_core-1.2.9 spec/factories/ecom/core/projects.rb
ecom_core-1.2.7 spec/factories/ecom/core/projects.rb
ecom_core-1.2.6 spec/factories/ecom/core/projects.rb