Sha256: 793999edbd62f63dc22003a4f9fcb76c3c847c4a570b94e0a678a856cd2453ae

Contents?: true

Size: 312 Bytes

Versions: 2

Compression:

Stored size: 312 Bytes

Contents

FactoryBot.define do
  factory :uploaded_txt_file, class: Hyrax::UploadedFile do
    initialize_with do
      base = File.join(IiifPrint::GEM_PATH, 'spec', 'fixtures', 'files')
      file_path = File.join(base, 'ndnp-sample1-txt.txt')
      new(file: File.open(file_path), user: create(:user))
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
iiif_print-1.1.0 spec/factories/uploaded_txt_file.rb
iiif_print-1.0.0 spec/factories/uploaded_txt_file.rb