Sha256: 9a36b1f186535e228dba7a5c30b39ba646b3f9c42a92bf37998aeb80385445a8

Contents?: true

Size: 494 Bytes

Versions: 16

Compression:

Stored size: 494 Bytes

Contents

FactoryGirl.define do
  factory :operation, class: CurationConcerns::Operation do
    operation_type "Test operation"

    trait :failing do
      status CurationConcerns::Operation::FAILURE
    end

    trait :pending do
      status CurationConcerns::Operation::PENDING
    end

    trait :successful do
      status CurationConcerns::Operation::SUCCESS
    end

    factory :batch_create_operation, class: Sufia::BatchCreateOperation do
      operation_type "Batch Create"
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
sufia-7.4.1 spec/factories/operations.rb
sufia-7.4.0 spec/factories/operations.rb
sufia-7.3.1 spec/factories/operations.rb
sufia-7.3.0 spec/factories/operations.rb
sufia-7.3.0.rc3 spec/factories/operations.rb
sufia-7.3.0.rc2 spec/factories/operations.rb
sufia-7.3.0.rc1 spec/factories/operations.rb
sufia-7.2.0 spec/factories/operations.rb
sufia-7.1.0 spec/factories/operations.rb
sufia-7.0.0 spec/factories/operations.rb
sufia-7.0.0.rc2 spec/factories/operations.rb
sufia-7.0.0.rc1 spec/factories/operations.rb
sufia-7.0.0.beta4 spec/factories/operations.rb
sufia-7.0.0.beta3 spec/factories/operations.rb
sufia-7.0.0.beta2 spec/factories/operations.rb
sufia-7.0.0.beta1 spec/factories/operations.rb