Sha256: d76a075547873aac22f46b978ce38de4eaa9df35d00c647506cc3007b9cd0f58
Contents?: true
Size: 632 Bytes
Versions: 4
Compression:
Stored size: 632 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 association :unit_of_measure 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
4 entries across 4 versions & 1 rubygems