Sha256: c644d45a3425f70a8774c65096ea7444a653f60e750dba0e8d17965c77eb8056

Contents?: true

Size: 529 Bytes

Versions: 17

Compression:

Stored size: 529 Bytes

Contents

FactoryBot.define do
  factory :work_package, class: Ecom::Core::WorkPackage do
    sequence :code do |n|
      "WPCode#{n}"
    end
    name { FFaker::Name.name }
    description { FFaker::Name.name }
    start_date { Date.yesterday }
    end_date { Date.today }
    location { FFaker::Name.name }
    budget { 1000 }
    resource_required { FFaker::Name.name }
    concerns { FFaker::Name.name }
    association :site_engineer, factory: :user
    association :project_manager, factory: :user
    association :project
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
ecom_core-1.3.14 spec/factories/ecom/core/work_packages.rb
ecom_core-1.3.13 spec/factories/ecom/core/work_packages.rb
ecom_core-1.3.12 spec/factories/ecom/core/work_packages.rb
ecom_core-1.3.11 spec/factories/ecom/core/work_packages.rb
ecom_core-1.3.10 spec/factories/ecom/core/work_packages.rb
ecom_core-1.3.9 spec/factories/ecom/core/work_packages.rb
ecom_core-1.3.8 spec/factories/ecom/core/work_packages.rb
ecom_core-1.3.7 spec/factories/ecom/core/work_packages.rb
ecom_core-1.3.6 spec/factories/ecom/core/work_packages.rb
ecom_core-1.3.5 spec/factories/ecom/core/work_packages.rb
ecom_core-1.3.4 spec/factories/ecom/core/work_packages.rb
ecom_core-1.3.3 spec/factories/ecom/core/work_packages.rb
ecom_core-1.3.2 spec/factories/ecom/core/work_packages.rb
ecom_core-1.3.1 spec/factories/ecom/core/work_packages.rb
ecom_core-1.3.0 spec/factories/ecom/core/work_packages.rb
ecom_core-1.2.36 spec/factories/ecom/core/work_packages.rb
ecom_core-1.2.35 spec/factories/ecom/core/work_packages.rb