Sha256: 37f6895dc52477ae9c6bc912e477a12375e03e843b9dda18caec6cb5d0b2589a

Contents?: true

Size: 599 Bytes

Versions: 13

Compression:

Stored size: 599 Bytes

Contents

FactoryBot.define do
  factory :task_template, class: Ecom::Core::TaskTemplate do
    sequence :code do |n|
      "TTCode#{n}"
    end
    name { FFaker::Name.name }
    description { FFaker::Name.name }
    association :task_template_type
    has_takeoff_fields { false }
    takeoff_fields { [{ name: 'length', label: 'Length' }] }
    percentage_contribution { nil }
    task_sequence { 1 }
    has_inspection { false }
    discipline { false }
    task_completion_detail do
      [
        { name: 'length', label: 'Length' },
        { name: 'width', label: 'Width' }
      ]
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

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