Sha256: c023c15b6be0d3d2398939874994af54174fa4e4bd270159d6131cd29a453d9b

Contents?: true

Size: 563 Bytes

Versions: 10

Compression:

Stored size: 563 Bytes

Contents

FactoryGirl.define do
  factory :linked_resource do
    ignore do
      user {FactoryGirl.create(:user)}
    end
    visibility Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_AUTHENTICATED
    url 'http://www.youtube.com/watch?v=oHg5SJYRHA0'
    batch { FactoryGirl.create(:generic_work, user: user) }
    before(:create) { |file, evaluator|
      file.apply_depositor_metadata(evaluator.user.user_key)
    }

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

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
curate-0.6.6 spec/factories/linked_resources_factory.rb
curate-0.6.5 spec/factories/linked_resources_factory.rb
curate-0.6.4 spec/factories/linked_resources_factory.rb
curate-0.6.3 spec/factories/linked_resources_factory.rb
curate-0.6.1 spec/factories/linked_resources_factory.rb
curate-0.6.0 spec/factories/linked_resources_factory.rb
curate-0.5.6 spec/factories/linked_resources_factory.rb
curate-0.5.5 spec/factories/linked_resources_factory.rb
curate-0.5.4 spec/factories/linked_resources_factory.rb
curate-0.5.2 spec/factories/linked_resources_factory.rb