Sha256: 9eb093f4e9d7782bd101abc48eef77310df57b4cef22fbbae2937a89eccc7a2d

Contents?: true

Size: 585 Bytes

Versions: 4

Compression:

Stored size: 585 Bytes

Contents

# frozen_string_literal: true

FactoryGirl.define do
  factory :operation_template, class: 'RailsWorkflow::OperationTemplate' do
    title 'Operation Template'
    kind 'default'
    type nil
    async nil
    is_background true
    association :process_template, factory: :process_template

    factory :parent_operation_template do
      child_process { create :process_template }
    end

    factory :user_operation_template do
      title 'User Operation'
      kind 'user'
    end

    factory :event do
      title 'Event'
      kind 'event'
      tag 'event'
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_workflow-0.7.3 spec/factories/operation_templates.rb
rails_workflow-0.7.2 spec/factories/operation_templates.rb
rails_workflow-0.7.1 spec/factories/operation_templates.rb
rails_workflow-0.7.0 spec/factories/operation_templates.rb