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.11.0 spec/factories/attachment_factories.rb
ddr-models-2.10.2 spec/factories/attachment_factories.rb
ddr-models-2.10.1 spec/factories/attachment_factories.rb
ddr-models-2.10.0 spec/factories/attachment_factories.rb
ddr-models-2.10.0.rc2 spec/factories/attachment_factories.rb
ddr-models-2.10.0.rc1 spec/factories/attachment_factories.rb
ddr-models-2.9.2 spec/factories/attachment_factories.rb
ddr-models-2.9.1 spec/factories/attachment_factories.rb
ddr-models-2.9.0 spec/factories/attachment_factories.rb
ddr-models-2.9.0.rc1 spec/factories/attachment_factories.rb
ddr-models-2.8.0 spec/factories/attachment_factories.rb
ddr-models-2.8.0.rc1 spec/factories/attachment_factories.rb
ddr-models-2.7.6 spec/factories/attachment_factories.rb
ddr-models-2.7.5 spec/factories/attachment_factories.rb
ddr-models-2.7.4 spec/factories/attachment_factories.rb
ddr-models-2.7.3 spec/factories/attachment_factories.rb
ddr-models-2.7.2 spec/factories/attachment_factories.rb
ddr-models-2.7.1 spec/factories/attachment_factories.rb
ddr-models-2.7.0 spec/factories/attachment_factories.rb
ddr-models-2.7.0.rc1 spec/factories/attachment_factories.rb