Sha256: 687ceef2444277141c544ced03f1a4e56260da1e82a68fdf8096a2e3a2d90949

Contents?: true

Size: 273 Bytes

Versions: 85

Compression:

Stored size: 273 Bytes

Contents

FactoryGirl.define do

  factory :component do
    title [ "Test Component" ]
    sequence(:identifier) { |n| [ "cmp%05d" % n ] }
    after(:build) do |c|
      c.upload File.new(File.join(Ddr::Models::Engine.root.to_s, "spec", "fixtures", "imageA.tif"))
    end
  end
end

Version data entries

85 entries across 85 versions & 1 rubygems

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