Sha256: e08e348dc190df9c0c52aa34ad98aee50fb6c8bd5fa08ee94da949e6e8c92b38
Contents?: true
Size: 1.28 KB
Versions: 5
Compression:
Stored size: 1.28 KB
Contents
FactoryGirl.define do factory :fixture, :class => GenericFile do factory :public_pdf do ignore do pid "sufia:fixture-pdf" end initialize_with { new(pid: pid) } read_groups ["public"] resource_type "Dissertation" subject %w"lorem ipsum dolor sit amet" before(:create) do |gf| gf.apply_depositor_metadata "archivist1@example.com" gf.title = "Fake Document Title" gf.label = "fake_document.pdf" end end factory :public_mp3 do ignore do pid "sufia:fixture-mp3" end initialize_with { new(pid: pid) } subject %w"consectetur adipisicing elit" before(:create) do |gf| gf.apply_depositor_metadata "archivist1@example.com" gf.inner_object.pid = "sufia:fixture-mp3" gf.label = "Test Document MP3.mp3" end read_groups ["public"] end factory :public_wav do ignore do pid "sufia:fixture-wav" end initialize_with { new(pid: pid) } resource_type ["Audio", "Dataset"] read_groups ["public"] subject %w"sed do eiusmod tempor incididunt ut labore" before(:create) do |gf| gf.apply_depositor_metadata "archivist1@example.com" gf.label = "Fake Wav File.wav" end end end end
Version data entries
5 entries across 5 versions & 1 rubygems