Sha256: 57e57719b5a7aeda53c5256ce1dc26c42977f00d2ba1571378fb1853dd3bb536
Contents?: true
Size: 277 Bytes
Versions: 87
Compression:
Stored size: 277 Bytes
Contents
FactoryGirl.define do factory :attachment do title [ "Test Attachment" ] sequence(:identifier) { |n| [ "att%05d" % n ] } after(:build) do |a| a.upload File.new(File.join(Ddr::Models::Engine.root.to_s, 'spec', 'fixtures', 'sample.docx')) end end end
Version data entries
87 entries across 87 versions & 1 rubygems