Sha256: 0fb47c1d7c3707cb17fe2c4f34ea891fd339896ba983b608ae1a1cbf1856cb99

Contents?: true

Size: 283 Bytes

Versions: 39

Compression:

Stored size: 283 Bytes

Contents

FactoryGirl.define do

  factory :attachment do
    dc_title [ "Test Attachment" ]
    sequence(:dc_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

39 entries across 39 versions & 1 rubygems

Version Path
ddr-models-3.0.8 spec/factories/attachment_factories.rb
ddr-models-3.0.7 spec/factories/attachment_factories.rb
ddr-models-3.0.6 spec/factories/attachment_factories.rb
ddr-models-3.0.5 spec/factories/attachment_factories.rb
ddr-models-3.0.4 spec/factories/attachment_factories.rb
ddr-models-3.0.3 spec/factories/attachment_factories.rb
ddr-models-3.0.2 spec/factories/attachment_factories.rb
ddr-models-3.0.1 spec/factories/attachment_factories.rb
ddr-models-3.0.0 spec/factories/attachment_factories.rb
ddr-models-3.0.0.rc6 spec/factories/attachment_factories.rb
ddr-models-3.0.0.rc5 spec/factories/attachment_factories.rb
ddr-models-3.0.0.rc4 spec/factories/attachment_factories.rb
ddr-models-3.0.0.rc3 spec/factories/attachment_factories.rb
ddr-models-3.0.0.rc2 spec/factories/attachment_factories.rb
ddr-models-3.0.0.rc1 spec/factories/attachment_factories.rb
ddr-models-3.0.0.beta.22 spec/factories/attachment_factories.rb
ddr-models-3.0.0.beta.21 spec/factories/attachment_factories.rb
ddr-models-3.0.0.beta.20 spec/factories/attachment_factories.rb
ddr-models-3.0.0.beta.18 spec/factories/attachment_factories.rb
ddr-models-3.0.0.beta.17 spec/factories/attachment_factories.rb