spec/factories/document.rb in social_stream-documents-0.9.0 vs spec/factories/document.rb in social_stream-documents-0.9.1
- old
+ new
@@ -7,10 +7,10 @@
d.user_author_id { |q| q.author_id }
end
Factory.define :public_document, :parent => :document do |d|
d.owner_id { |q| q.author_id }
- d._relation_ids { |q| Array(q.author.relation_public.id) }
+ d._relation_ids { |q| Array(Relation::Public.instance.id) }
end
Factory.define :private_document, :parent => :document do |d|
d.file { Rack::Test::UploadedFile.new(File.join(File.dirname(__FILE__), 'files', 'small.pdf'),
'application/pdf') }