Sha256: 1854ad7a9046726c422fa557d7b7aab0d1c89e4fa1914bd34fc3ac2304940b26
Contents?: true
Size: 313 Bytes
Versions: 3
Compression:
Stored size: 313 Bytes
Contents
FactoryBot.define do factory :uploaded_pdf_file, class: Hyrax::UploadedFile do initialize_with do base = File.join(NewspaperWorks::GEM_PATH, 'spec', 'fixtures', 'files') pdf_path = File.join(base, 'minimal-2-page.pdf') new(file: File.open(pdf_path), user: create(:user)) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
newspaper_works-1.0.1 | spec/factories/uploaded_pdf_file.rb |
newspaper_works-1.0.0 | spec/factories/uploaded_pdf_file.rb |
newspaper_works-0.1.0 | spec/factories/uploaded_pdf_file.rb |