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.3.7 spec/factories/asset.rb
noodall-ui-0.3.6 spec/factories/asset.rb
noodall-ui-0.3.5 spec/factories/asset.rb
noodall-ui-0.3.4 spec/factories/asset.rb
noodall-ui-0.3.3 spec/factories/asset.rb
noodall-ui-0.3.2 spec/factories/asset.rb
noodall-ui-0.3.1 spec/factories/asset.rb
noodall-ui-0.3.0 spec/factories/asset.rb
noodall-ui-0.2.3 spec/factories/asset.rb
noodall-ui-0.2.2 spec/factories/asset.rb
noodall-ui-0.2.1 spec/factories/asset.rb
noodall-ui-0.2.0 spec/factories/asset.rb
noodall-ui-0.1.17 spec/factories/asset.rb
noodall-ui-0.1.16 spec/factories/asset.rb
noodall-ui-0.1.15 spec/factories/asset.rb
noodall-ui-0.1.14 spec/factories/asset.rb
noodall-ui-0.1.13 spec/factories/asset.rb
noodall-ui-0.1.12 spec/factories/asset.rb
noodall-ui-0.1.11 spec/factories/asset.rb
noodall-ui-0.1.10 spec/factories/asset.rb