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

Version Path
dorsale-3.8.1 spec/factories/alexandrie_attachments.rb
dorsale-3.8.0 spec/factories/alexandrie_attachments.rb
dorsale-3.7.8 spec/factories/alexandrie_attachments.rb
dorsale-3.7.7 spec/factories/alexandrie_attachments.rb
dorsale-3.7.6 spec/factories/alexandrie_attachments.rb
dorsale-3.7.5 spec/factories/alexandrie_attachments.rb
dorsale-3.7.4 spec/factories/alexandrie_attachments.rb
dorsale-3.7.2 spec/factories/alexandrie_attachments.rb
dorsale-3.7.1 spec/factories/alexandrie_attachments.rb
dorsale-3.7.0 spec/factories/alexandrie_attachments.rb
dorsale-3.6.1 spec/factories/alexandrie_attachments.rb
dorsale-3.6.0 spec/factories/alexandrie_attachments.rb
dorsale-3.5.2 spec/factories/alexandrie_attachments.rb
dorsale-3.5.1 spec/factories/alexandrie_attachments.rb
dorsale-3.5.0 spec/factories/alexandrie_attachments.rb
dorsale-3.4.0 spec/factories/alexandrie_attachments.rb
dorsale-3.3.0 spec/factories/alexandrie_attachments.rb
dorsale-3.2.0 spec/factories/alexandrie_attachments.rb
dorsale-3.1.7 spec/factories/alexandrie_attachments.rb
dorsale-3.1.6 spec/factories/alexandrie_attachments.rb