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.0.beta.16 spec/factories/attachment_factories.rb
ddr-models-3.0.0.beta.15 spec/factories/attachment_factories.rb
ddr-models-3.0.0.beta.14 spec/factories/attachment_factories.rb
ddr-models-3.0.0.beta.13 spec/factories/attachment_factories.rb
ddr-models-3.0.0.beta.12 spec/factories/attachment_factories.rb
ddr-models-3.0.0.beta.11 spec/factories/attachment_factories.rb
ddr-models-3.0.0.beta.10 spec/factories/attachment_factories.rb
ddr-models-3.0.0.beta.9 spec/factories/attachment_factories.rb
ddr-models-3.0.0.beta.8 spec/factories/attachment_factories.rb
ddr-models-3.0.0.beta.7 spec/factories/attachment_factories.rb
ddr-models-3.0.0.beta.6 spec/factories/attachment_factories.rb
ddr-models-3.0.0.beta.4 spec/factories/attachment_factories.rb
ddr-models-3.0.0.beta.3 spec/factories/attachment_factories.rb
ddr-models-3.0.0.beta.2 spec/factories/attachment_factories.rb
ddr-models-3.0.0.beta.1 spec/factories/attachment_factories.rb
ddr-models-3.0.0.alpha.4 spec/factories/attachment_factories.rb
ddr-models-3.0.0.alpha.3 spec/factories/attachment_factories.rb
ddr-models-3.0.0.alpha.2 spec/factories/attachment_factories.rb
ddr-models-3.0.0.alpha.1 spec/factories/attachment_factories.rb