Sha256: 7cb6254d328efde3c20465175ba2ebc608d5ee0cbb4467f86bc1976c57f6c5bb

Contents?: true

Size: 499 Bytes

Versions: 4

Compression:

Stored size: 499 Bytes

Contents

# frozen_string_literal: true
FactoryBot.define do
  factory :operation, class: Hyrax::Operation do
    operation_type { "Test operation" }

    trait :failing do
      status { Hyrax::Operation::FAILURE }
    end

    trait :pending do
      status { Hyrax::Operation::PENDING }
    end

    trait :successful do
      status { Hyrax::Operation::SUCCESS }
    end

    factory :batch_create_operation, class: Hyrax::BatchCreateOperation do
      operation_type { "Batch Create" }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hyrax-5.0.2 lib/hyrax/specs/shared_specs/factories/operations.rb
hyrax-5.0.1 lib/hyrax/specs/shared_specs/factories/operations.rb
hyrax-5.0.0 spec/factories/operations.rb
hyrax-5.0.0.rc3 spec/factories/operations.rb