Sha256: aece42c207398167f2b71932e3fb155fa96dba76715a9399947f1f21c6e9913c
Contents?: true
Size: 355 Bytes
Versions: 72
Compression:
Stored size: 355 Bytes
Contents
FactoryGirl.define do factory :alexandrie_attachment, class: ::Dorsale::Alexandrie::Attachment do attachable { DummyModel.create!(name: "abc") } sender { create(:user) } file { path = Dorsale::Engine.root.join("spec/files/pdf.pdf").to_s Rack::Test::UploadedFile.new(path, "application/pdf") } end end
Version data entries
72 entries across 72 versions & 1 rubygems