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