Sha256: 5a28e037ac2ecd317e49ca207d4fddbdea49bf64077a5c59d6a82f449a6432ff

Contents?: true

Size: 510 Bytes

Versions: 6

Compression:

Stored size: 510 Bytes

Contents

FactoryGirl.define do
  # The ::Collection model is defined in .internal_test_app/app/models by the
  # curation_concerns:install generator.
  factory :collection do
    transient do
      user { FactoryGirl.create(:user) }
    end

    title 'Test collection title'

    after(:build) do |collection, evaluator|
      collection.apply_depositor_metadata(evaluator.user.user_key)
    end

    trait :public do
      visibility Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_PUBLIC
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
curation_concerns-0.8.0 spec/factories/collections.rb
curation_concerns-0.7.0 spec/factories/collections.rb
curation_concerns-0.6.0 spec/factories/collections.rb
curation_concerns-0.5.0 spec/factories/collections.rb
curation_concerns-0.4.0 spec/factories/collections.rb
curation_concerns-0.3.0 spec/factories/collections.rb