Sha256: 105ff576528548d946eec2066cc3d5e418a575512b8f68c47a935825a733466c

Contents?: true

Size: 311 Bytes

Versions: 15

Compression:

Stored size: 311 Bytes

Contents

FactoryGirl.define do
  factory :alexandrie_attachment, class: ::Dorsale::Alexandrie::Attachment do
    attachable {
      DummyModel.create!(name: "abc")
    }

    file {
      path = Rails.root.join("../../spec/files/pdf.pdf").to_s
      Rack::Test::UploadedFile.new(path, "application/pdf")
    }
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
dorsale-2.1.13 spec/factories/alexandrie_attachments.rb
dorsale-2.1.12 spec/factories/alexandrie_attachments.rb
dorsale-2.1.11 spec/factories/alexandrie_attachments.rb
dorsale-2.1.10 spec/factories/alexandrie_attachments.rb
dorsale-2.1.9 spec/factories/alexandrie_attachments.rb
dorsale-2.1.8 spec/factories/alexandrie_attachments.rb
dorsale-2.1.7 spec/factories/alexandrie_attachments.rb
dorsale-2.1.6 spec/factories/alexandrie_attachments.rb
dorsale-2.1.5 spec/factories/alexandrie_attachments.rb
dorsale-2.1.4 spec/factories/alexandrie_attachments.rb
dorsale-2.1.3 spec/factories/alexandrie_attachments.rb
dorsale-2.1.2 spec/factories/alexandrie_attachments.rb
dorsale-2.1.1 spec/factories/alexandrie_attachments.rb
dorsale-2.1.0 spec/factories/alexandrie_attachments.rb
dorsale-2.0.1 spec/factories/alexandrie_attachments.rb