Sha256: 73c991091281c237641446210ea88504d006bf3b9d8d0ff449aec234e9c1b3fe

Contents?: true

Size: 336 Bytes

Versions: 16

Compression:

Stored size: 336 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 }
    fields { [{ name: 'length', label: 'Length' }] }
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
ecom_core-1.2.31 spec/factories/ecom/core/task_templates.rb
ecom_core-1.2.30 spec/factories/ecom/core/task_templates.rb
ecom_core-1.2.29 spec/factories/ecom/core/task_templates.rb
ecom_core-1.2.28 spec/factories/ecom/core/task_templates.rb
ecom_core-1.2.27 spec/factories/ecom/core/task_templates.rb
ecom_core-1.2.26 spec/factories/ecom/core/task_templates.rb
ecom_core-1.2.25 spec/factories/ecom/core/task_templates.rb
ecom_core-1.2.24 spec/factories/ecom/core/task_templates.rb
ecom_core-1.2.23 spec/factories/ecom/core/task_templates.rb
ecom_core-1.2.22 spec/factories/ecom/core/task_templates.rb
ecom_core-1.2.21 spec/factories/ecom/core/task_templates.rb
ecom_core-1.2.20 spec/factories/ecom/core/task_templates.rb
ecom_core-1.2.19 spec/factories/ecom/core/task_templates.rb
ecom_core-1.2.18 spec/factories/ecom/core/task_templates.rb
ecom_core-1.2.17 spec/factories/ecom/core/task_templates.rb
ecom_core-1.2.16 spec/factories/ecom/core/task_templates.rb