Sha256: e28cac892aee43e79a1f9d016fe88e127a10d81bcb45528275f71a529e05d7d0
Contents?: true
Size: 531 Bytes
Versions: 3
Compression:
Stored size: 531 Bytes
Contents
Factory.define :picture do |p| p.file { Rack::Test::UploadedFile.new(File.join(File.dirname(__FILE__), 'files', 'rails.png'), 'image/png') } p._contact_id { Factory(:friend).contact_id } p._relation_ids { |q| Array(Contact.find(q._contact_id).sender.relation_customs.sort.first.id) } end Factory.define :public_picture, :parent => :picture do |p| p._contact_id { Factory(:self_contact).id } p._relation_ids { |q| Array(Contact.find(q._contact_id).sender.relation_public.id) } end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
social_stream-documents-0.2.4 | spec/factories/picture.rb |
social_stream-documents-0.2.3 | spec/factories/picture.rb |
social_stream-documents-0.2.0 | spec/factories/picture.rb |