master
FactoryGirl.define do factory :preview do height 348 width 620 content_type 'video/webm' filename { [Faker::Lorem.characters(24), content_type.split('/').last].join('.') } thumbnail 'large' media_type { content_type.split('/').first } end end