Sha256: f62fd870ac2606e67ec56a26293bdbbaf6cacf2096f79f85ebf0f5e424d71b87

Contents?: true

Size: 528 Bytes

Versions: 13

Compression:

Stored size: 528 Bytes

Contents

FactoryGirl.define do
  factory :generic_file do
    ignore do
      user {FactoryGirl.create(:user)}
    end
    visibility Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_AUTHENTICATED
    file "Sample file"
    batch { FactoryGirl.create(:generic_work, user: user) }
    before(:create) { |file, evaluator|
       file.apply_depositor_metadata(evaluator.user.user_key)
    }

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

Version data entries

13 entries across 13 versions & 1 rubygems

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