Sha256: 1108e806d38072f52069f09240086e5067458be112d7e0dbd8bb704aca436516

Contents?: true

Size: 519 Bytes

Versions: 19

Compression:

Stored size: 519 Bytes

Contents

FactoryGirl.define do
  factory :collection do
    ignore do
      user {FactoryGirl.create(:user)}
    end
    sequence(:title) {|n| "Title #{n}"}
    before(:create) { |work, evaluator|
      work.apply_depositor_metadata(evaluator.user.user_key)
    }

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

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

end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
worthwhile-0.1.2 spec/factories/collections_factory.rb
worthwhile-0.1.1 spec/factories/collections_factory.rb
worthwhile-0.1.0 spec/factories/collections_factory.rb
worthwhile-0.0.3 spec/factories/collections_factory.rb
worthwhile-0.0.2 spec/factories/collections_factory.rb
worthwhile-0.0.1 spec/factories/collections_factory.rb
curate-0.6.6 spec/factories/collections_factory.rb
curate-0.6.5 spec/factories/collections_factory.rb
curate-0.6.4 spec/factories/collections_factory.rb
curate-0.6.3 spec/factories/collections_factory.rb
curate-0.6.1 spec/factories/collections_factory.rb
curate-0.6.0 spec/factories/collections_factory.rb
curate-0.5.6 spec/factories/collections_factory.rb
curate-0.5.5 spec/factories/collections_factory.rb
curate-0.5.4 spec/factories/collections_factory.rb
curate-0.5.2 spec/factories/collections_factory.rb
curate-0.5.1 spec/factories/collections_factory.rb
curate-0.5.0 spec/factories/collections_factory.rb
curate-0.4.2 spec/factories/collections_factory.rb