Sha256: 34cbd02a7e205d0113616cb0d5924c9e12364cd12bd504764d54c5cba6561fca

Contents?: true

Size: 505 Bytes

Versions: 1

Compression:

Stored size: 505 Bytes

Contents

FactoryGirl.define do
  # The ::Collection model is defined in spec/internal/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

1 entries across 1 versions & 1 rubygems

Version Path
curation_concerns-0.2.0 spec/factories/collections.rb