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