lib/decidim/comments/test/factories.rb in decidim-comments-0.0.8.1 vs lib/decidim/comments/test/factories.rb in decidim-comments-0.1.0

- old
+ new

@@ -4,9 +4,10 @@ FactoryGirl.define do factory :comment, class: "Decidim::Comments::Comment" do author { build(:user, organization: commentable.organization) } commentable { build(:dummy_resource) } + root_commentable { commentable } body { Faker::Lorem.paragraph } end factory :comment_vote, class: "Decidim::Comments::CommentVote" do comment { build(:comment) }