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

Version Path
noodall-ui-0.4.11 spec/factories/asset.rb
noodall-ui-0.4.10 spec/factories/asset.rb
noodall-ui-0.4.9 spec/factories/asset.rb
noodall-ui-0.4.8 spec/factories/asset.rb
noodall-ui-0.4.7 spec/factories/asset.rb
noodall-ui-0.3.20 spec/factories/asset.rb
noodall-ui-0.4.6 spec/factories/asset.rb
noodall-ui-0.3.19 spec/factories/asset.rb
noodall-ui-0.4.5 spec/factories/asset.rb
noodall-ui-0.4.4 spec/factories/asset.rb
noodall-ui-0.4.1 spec/factories/asset.rb
noodall-ui-0.4.0 spec/factories/asset.rb
noodall-ui-0.3.17 spec/factories/asset.rb
noodall-ui-0.3.16 spec/factories/asset.rb
noodall-ui-0.3.15 spec/factories/asset.rb
noodall-ui-0.3.14 spec/factories/asset.rb
noodall-ui-0.3.13 spec/factories/asset.rb
noodall-ui-0.3.12 spec/factories/asset.rb
noodall-ui-0.3.11 spec/factories/asset.rb
noodall-ui-0.3.8 spec/factories/asset.rb