Sha256: 70a267b02e850cbec80b1eaefa358478deed11e132a97699612cb94eb490ad26

Contents?: true

Size: 370 Bytes

Versions: 9

Compression:

Stored size: 370 Bytes

Contents

# frozen_string_literal: true

FactoryGirl.define do
  factory :operation, class: 'RailsWorkflow::Operation' do
    title 'Test Operation'
    status RailsWorkflow::Status::NOT_STARTED

    factory :operation_with_context do
      context { create :context, data: { msg: 'Test' } }
    end
  end

  factory :custom_operation, class: 'RailsWorkflow::CustomOperation'
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rails_workflow-0.7.3 spec/factories/operations.rb
rails_workflow-0.7.2 spec/factories/operations.rb
rails_workflow-0.7.1 spec/factories/operations.rb
rails_workflow-0.7.0 spec/factories/operations.rb
rails_workflow-0.4.4 spec/factories/operations.rb
rails_workflow-0.4.3 spec/factories/operations.rb
rails_workflow-0.4.2 spec/factories/operations.rb
rails_workflow-0.4.1 spec/factories/operations.rb
rails_workflow-0.4.0 spec/factories/operations.rb