Sha256: 66d289f466a90c2a60276991415a93297f5814e05994eaaa2f027d104c461f07
Contents?: true
Size: 554 Bytes
Versions: 21
Compression:
Stored size: 554 Bytes
Contents
FactoryGirl.define do factory :external_metadata_file, class: FileSet do initialize_with { new(geo_mime_type: 'application/xml; schema=iso19139') } transient do user { FactoryGirl.create(:user) } content nil end after(:build) do |file, evaluator| file.title = ['A metadata file'] file.apply_depositor_metadata(evaluator.user.user_key) end after(:create) do |file, evaluator| if evaluator.content Hydra::Works::UploadFileToFileSet.call(file, evaluator.content) end end end end
Version data entries
21 entries across 21 versions & 2 rubygems