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.1.2 spec/factories/component_factories.rb
ddr-models-2.1.1 spec/factories/component_factories.rb
ddr-models-2.1.0 spec/factories/component_factories.rb
ddr-models-2.1.0.rc2 spec/factories/component_factories.rb
ddr-models-2.1.0.rc1 spec/factories/component_factories.rb
ddr-models-2.0.1 spec/factories/component_factories.rb
ddr-models-2.0.0 spec/factories/component_factories.rb
ddr-models-2.0.0.rc6 spec/factories/component_factories.rb
ddr-models-2.0.0.rc5 spec/factories/component_factories.rb
ddr-models-2.0.0.rc4 spec/factories/component_factories.rb
ddr-models-2.0.0.rc3 spec/factories/component_factories.rb
ddr-models-2.0.0.rc2 spec/factories/component_factories.rb
ddr-models-1.17.1 spec/factories/component_factories.rb
ddr-models-2.0.0.rc1 spec/factories/component_factories.rb
ddr-models-2.0.0.pre.5 spec/factories/component_factories.rb
ddr-models-1.17.0 spec/factories/component_factories.rb
ddr-models-2.0.0.pre.4 spec/factories/component_factories.rb
ddr-models-2.0.0.pre.3 spec/factories/component_factories.rb
ddr-models-1.16.2 spec/factories/component_factories.rb
ddr-models-2.0.0.pre.2 spec/factories/component_factories.rb