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

Version Path
ddr-models-2.0.0.pre.1 spec/factories/attachment_factories.rb
ddr-models-1.16.1 spec/factories/attachment_factories.rb
ddr-models-1.16.0 spec/factories/attachment_factories.rb
ddr-models-1.15.0 spec/factories/attachment_factories.rb
ddr-models-1.14.2 spec/factories/attachment_factories.rb
ddr-models-1.14.1 spec/factories/attachment_factories.rb
ddr-models-1.14.0 spec/factories/attachment_factories.rb