Sha256: 86058ee15fede25c43c08f4435cc19dc7419909044fc513d253bbb2f39c1c2a6

Contents?: true

Size: 268 Bytes

Versions: 153

Compression:

Stored size: 268 Bytes

Contents

FactoryGirl.define do

  factory :target do
    title [ "Test Target" ]
    sequence(:identifier) { |n| [ "tgt%05d" % n ] }
    after(:build) do |c|
      c.upload File.new(File.join(Ddr::Models::Engine.root.to_s, 'spec', 'fixtures', 'target.png'))
    end
  end

end

Version data entries

153 entries across 153 versions & 1 rubygems

Version Path
ddr-models-2.6.2 spec/factories/target_factories.rb
ddr-models-2.6.1 spec/factories/target_factories.rb
ddr-models-2.6.0 spec/factories/target_factories.rb
ddr-models-2.6.0.rc4 spec/factories/target_factories.rb
ddr-models-2.6.0.rc3 spec/factories/target_factories.rb
ddr-models-2.6.0.rc2 spec/factories/target_factories.rb
ddr-models-2.6.0.rc1 spec/factories/target_factories.rb
ddr-models-2.5.3 spec/factories/target_factories.rb
ddr-models-2.5.2 spec/factories/target_factories.rb
ddr-models-2.5.1 spec/factories/target_factories.rb
ddr-models-2.5.0 spec/factories/target_factories.rb
ddr-models-2.5.0.rc1 spec/factories/target_factories.rb
ddr-models-2.4.16 spec/factories/target_factories.rb
ddr-models-2.4.15 spec/factories/target_factories.rb
ddr-models-2.4.14 spec/factories/target_factories.rb
ddr-models-2.4.13 spec/factories/target_factories.rb
ddr-models-2.4.12 spec/factories/target_factories.rb
ddr-models-2.4.11 spec/factories/target_factories.rb
ddr-models-3.0.8 spec/factories/target_factories.rb
ddr-models-3.0.7 spec/factories/target_factories.rb