Sha256: c83ceedfb9f981f964b4f32fe415040588ca92245e91031f0f40f89be57c2005

Contents?: true

Size: 354 Bytes

Versions: 35

Compression:

Stored size: 354 Bytes

Contents

FactoryBot.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

35 entries across 35 versions & 1 rubygems

Version Path
dorsale-4.0.0 spec/factories/alexandrie_attachments.rb
dorsale-3.20.0 spec/factories/alexandrie_attachments.rb
dorsale-3.19.1 spec/factories/alexandrie_attachments.rb
dorsale-3.19.0 spec/factories/alexandrie_attachments.rb
dorsale-3.18.0 spec/factories/alexandrie_attachments.rb
dorsale-3.17.0 spec/factories/alexandrie_attachments.rb
dorsale-3.16.0 spec/factories/alexandrie_attachments.rb
dorsale-3.15.0 spec/factories/alexandrie_attachments.rb
dorsale-3.14.11 spec/factories/alexandrie_attachments.rb
dorsale-3.14.10 spec/factories/alexandrie_attachments.rb
dorsale-3.14.9 spec/factories/alexandrie_attachments.rb
dorsale-3.14.8 spec/factories/alexandrie_attachments.rb
dorsale-3.14.7 spec/factories/alexandrie_attachments.rb
dorsale-3.14.6 spec/factories/alexandrie_attachments.rb
dorsale-3.14.5 spec/factories/alexandrie_attachments.rb
dorsale-3.14.3 spec/factories/alexandrie_attachments.rb
dorsale-3.14.2 spec/factories/alexandrie_attachments.rb
dorsale-3.14.1 spec/factories/alexandrie_attachments.rb
dorsale-3.14.0 spec/factories/alexandrie_attachments.rb
dorsale-3.13.0 spec/factories/alexandrie_attachments.rb