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-3.0.6 spec/factories/target_factories.rb
ddr-models-3.0.5 spec/factories/target_factories.rb
ddr-models-3.0.4 spec/factories/target_factories.rb
ddr-models-3.0.3 spec/factories/target_factories.rb
ddr-models-3.0.2 spec/factories/target_factories.rb
ddr-models-3.0.1 spec/factories/target_factories.rb
ddr-models-3.0.0 spec/factories/target_factories.rb
ddr-models-3.0.0.rc6 spec/factories/target_factories.rb
ddr-models-3.0.0.rc5 spec/factories/target_factories.rb
ddr-models-3.0.0.rc4 spec/factories/target_factories.rb
ddr-models-3.0.0.rc3 spec/factories/target_factories.rb
ddr-models-3.0.0.rc2 spec/factories/target_factories.rb
ddr-models-3.0.0.rc1 spec/factories/target_factories.rb
ddr-models-3.0.0.beta.22 spec/factories/target_factories.rb
ddr-models-3.0.0.beta.21 spec/factories/target_factories.rb
ddr-models-2.4.10 spec/factories/target_factories.rb
ddr-models-3.0.0.beta.20 spec/factories/target_factories.rb
ddr-models-2.4.9 spec/factories/target_factories.rb
ddr-models-3.0.0.beta.18 spec/factories/target_factories.rb
ddr-models-2.4.8 spec/factories/target_factories.rb