Sha256: 887d194962a46ca0700d3040bc1a40fed9df6b46eed8e29a8f1735a68e97f64d

Contents?: true

Size: 300 Bytes

Versions: 5

Compression:

Stored size: 300 Bytes

Contents

FactoryGirl.define do
  factory :ecm_downloads_download, class: Ecm::Downloads::Download do
    sequence(:name) { |i| "Download ##{i}" }
    ecm_downloads_download_category
    asset { File.open(File.join(Ecm::Downloads::Engine.root, 'spec/files', 'ecm/downloads', 'download/asset.txt')) }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ecm_downloads2-5.0.0 spec/factories/ecm/downloads/download.rb
ecm_downloads2-4.0.1 spec/factories/ecm/downloads/download.rb
ecm_downloads2-3.0.0 spec/factories/ecm/downloads/download.rb
ecm_downloads2-2.0.3 spec/factories/ecm/downloads/download.rb
ecm_downloads2-2.0.2 spec/factories/ecm/downloads/download.rb