Sha256: fb5412372594ae63c5086dd9dfe468966f4414e022b17d2dd9b9bd6a13894b99

Contents?: true

Size: 887 Bytes

Versions: 61

Compression:

Stored size: 887 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
  end
end

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
ecom_core-1.1.14 spec/factories/ecom/core/projects.rb
ecom_core-1.1.13 spec/factories/ecom/core/projects.rb
ecom_core-1.1.12 spec/factories/ecom/core/projects.rb
ecom_core-1.1.11 spec/factories/ecom/core/projects.rb
ecom_core-1.1.10 spec/factories/ecom/core/projects.rb
ecom_core-1.1.9 spec/factories/ecom/core/projects.rb
ecom_core-1.1.8 spec/factories/ecom/core/projects.rb
ecom_core-1.1.7 spec/factories/ecom/core/projects.rb
ecom_core-1.1.6 spec/factories/ecom/core/projects.rb
ecom_core-1.1.5 spec/factories/ecom/core/projects.rb
ecom_core-1.1.4 spec/factories/ecom/core/projects.rb
ecom_core-1.1.3 spec/factories/ecom/core/projects.rb
ecom_core-1.1.2 spec/factories/ecom/core/projects.rb
ecom_core-1.1.1 spec/factories/ecom/core/projects.rb
ecom_core-1.1.0 spec/factories/ecom/core/projects.rb
ecom_core-1.0.25 spec/factories/ecom/core/projects.rb
ecom_core-1.0.24 spec/factories/ecom/core/projects.rb
ecom_core-1.0.23 spec/factories/ecom/core/projects.rb
ecom_core-1.0.22 spec/factories/ecom/core/projects.rb
ecom_core-1.0.21 spec/factories/ecom/core/projects.rb