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.1.5 spec/factories/alexandrie_attachments.rb
dorsale-3.1.4 spec/factories/alexandrie_attachments.rb
dorsale-3.1.3 spec/factories/alexandrie_attachments.rb
dorsale-3.1.2 spec/factories/alexandrie_attachments.rb
dorsale-3.1.1 spec/factories/alexandrie_attachments.rb
dorsale-3.1.0 spec/factories/alexandrie_attachments.rb
dorsale-3.0.3 spec/factories/alexandrie_attachments.rb
dorsale-3.0.2 spec/factories/alexandrie_attachments.rb
dorsale-3.0.1 spec/factories/alexandrie_attachments.rb
dorsale-3.0.0 spec/factories/alexandrie_attachments.rb
dorsale-2.7.3 spec/factories/alexandrie_attachments.rb
dorsale-2.7.2 spec/factories/alexandrie_attachments.rb
dorsale-2.7.1 spec/factories/alexandrie_attachments.rb
dorsale-2.7.0 spec/factories/alexandrie_attachments.rb
dorsale-2.6.8 spec/factories/alexandrie_attachments.rb
dorsale-2.6.7 spec/factories/alexandrie_attachments.rb
dorsale-2.6.6 spec/factories/alexandrie_attachments.rb
dorsale-2.6.5 spec/factories/alexandrie_attachments.rb
dorsale-2.6.4 spec/factories/alexandrie_attachments.rb
dorsale-2.6.3 spec/factories/alexandrie_attachments.rb