Sha256: d3f0139f2d081d96d257ce22262f9d4ed453f8d7811e39ff3724ea5e960ff2b0

Contents?: true

Size: 384 Bytes

Versions: 13

Compression:

Stored size: 384 Bytes

Contents

FactoryGirl.define do
  factory :document, parent: :generic_work, class: Document do
    type { Document.valid_types.sample }

    factory :private_document do
      visibility Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_PRIVATE
    end

    factory :public_document do
      visibility Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_PUBLIC
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
curate-0.6.6 spec/factories/documents_factory.rb
curate-0.6.5 spec/factories/documents_factory.rb
curate-0.6.4 spec/factories/documents_factory.rb
curate-0.6.3 spec/factories/documents_factory.rb
curate-0.6.1 spec/factories/documents_factory.rb
curate-0.6.0 spec/factories/documents_factory.rb
curate-0.5.6 spec/factories/documents_factory.rb
curate-0.5.5 spec/factories/documents_factory.rb
curate-0.5.4 spec/factories/documents_factory.rb
curate-0.5.2 spec/factories/documents_factory.rb
curate-0.5.1 spec/factories/documents_factory.rb
curate-0.5.0 spec/factories/documents_factory.rb
curate-0.4.2 spec/factories/documents_factory.rb