Sha256: e28716648bce006a196e13f8618d40029485a2f5668f21cd43d90be2a8247633

Contents?: true

Size: 721 Bytes

Versions: 4

Compression:

Stored size: 721 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'
    content_organization_ids ['LWXO44E8J','LWXO5XI3C']
    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

4 entries across 4 versions & 1 rubygems

Version Path
daengine-0.2.5 spec/factories.rb
daengine-0.2.4 spec/factories.rb
daengine-0.2.3 spec/factories.rb
daengine-0.2.2 spec/factories.rb