Sha256: ce707923805641521b510079846fa8df899302540148cf2734987a67c2e8f670

Contents?: true

Size: 665 Bytes

Versions: 17

Compression:

Stored size: 665 Bytes

Contents

FactoryGirl.define do

  factory :document, :class => 'DigitalAsset::Document' do
    path '/some/crazy/file.path'
    doc_changed_at 2.days.ago
    content_type '777'
  end

  factory :digital_asset do
    title 'Doc Title'
    changed_at 2.days.ago
    audiences ['490']
    sequence(:guid) {|n| "guid-foobar-permanent-#{n}"} 
    published_at 10.days.ago
    expires_at 2.months.from_now
    fund_ids ['420']
    sami_code 'F0000.BAR'
    product_ids ['690', '420']
    business_owner 'biz owner'
    sequence(:documents) {|n|[DigitalAsset::Document.new(path: "/#{n}/foo/bar.txt", doc_changed_at: 2.days.ago, content_type: '666')]}
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
daengine-0.2.1 spec/factories.rb
daengine-0.2.0 spec/factories.rb
daengine-0.1.9 spec/factories.rb
daengine-0.1.8 spec/factories.rb
daengine-0.1.7 spec/factories.rb
daengine-0.1.6 spec/factories.rb
daengine-0.1.5 spec/factories.rb
daengine-0.1.4 spec/factories.rb
daengine-0.1.3 spec/factories.rb
daengine-0.1.2 spec/factories.rb
daengine-0.1.1 spec/factories.rb
daengine-0.1.0 spec/factories.rb
daengine-0.0.10.alpha spec/factories.rb
daengine-0.0.9.alpha spec/factories.rb
daengine-0.0.8.alpha spec/factories.rb
daengine-0.0.7.alpha spec/factories.rb
daengine-0.0.6.alpha spec/factories.rb