2012-03-29 21:34:22 +01:00
|
|
|
FactoryGirl.define do
|
|
|
|
factory :comment do
|
|
|
|
body { FactoryGirl.generate(:string) }
|
|
|
|
association :user, :factory => :user
|
|
|
|
association :commentable, :factory => :issue
|
2013-06-27 15:37:41 +01:00
|
|
|
project { |c| c.commentable.project }
|
2013-06-27 20:43:44 +01:00
|
|
|
after(:create) { |c| c.send(:new_comment_notifications) }
|
2012-03-29 21:34:22 +01:00
|
|
|
end
|
2011-12-29 11:16:54 +00:00
|
|
|
end
|