Sha256: 1668d6cb702b75eaad4dbc7ac2194c29ec3451f38998f7d3bb183b7200bab919
Contents?: true
Size: 545 Bytes
Versions: 70
Compression:
Stored size: 545 Bytes
Contents
Factory.define :asset do |asset| asset.tags { Faker::Lorem.words(4) } asset.title { "Image asset" } asset.description { "The asset description" } asset.file { File.new("#{Rails.root}/spec/files/beef.png") } end Factory.define :document_asset, :parent => :asset do |asset| asset.title { "Document asset" } asset.file { File.new("#{Rails.root}/spec/files/test.pdf") } end Factory.define :video_asset, :parent => :asset do |asset| asset.title { "Video asset" } asset.file { File.new("#{Rails.root}/spec/files/get_video.flv") } end
Version data entries
70 entries across 70 versions & 1 rubygems