when delete co-author relation, the co-author will be reset nil

This commit is contained in:
Rueshyna committed 2012-12-05 13:49:53 +08:00
1 parent 7342fe0e24
commit 4ebbd7cb5a
3 files changed
+8 -1

No files matched your search

+1 -1
View File
@@ -33,7 +33,7 @@ FactoryGirl.define do
{ zh_tw: "#{name_tw[n]}",
en: "#{name_en[n]}" }
end
f.sequence(:type) do |n| "#{type[n%5]}" end
f.sequence(:co_author_relations_id) do |n| "#{CoAuthorRelation.all[n%type.size].id}" end
f.sequence(:email) do |n| "#{email[n]}" end
f.name_id BSON::ObjectId('4f45f3b9e9d02c5db9000067') #user_id, this is Chris' account
end