2012-03-29 21:34:22 +01:00
|
|
|
FactoryGirl.define do
|
|
|
|
factory :comment do
|
|
|
|
body { FactoryGirl.generate(:string) }
|
2014-01-21 04:51:49 +00:00
|
|
|
association :user, factory: :user
|
|
|
|
association :commentable, factory: :issue
|
2013-06-27 15:37:41 +01:00
|
|
|
project { |c| c.commentable.project }
|
2012-03-29 21:34:22 +01:00
|
|
|
end
|
2011-12-29 11:16:54 +00:00
|
|
|
end
|