lib/decidim/comments/test/factories.rb in decidim-comments-0.25.0.rc1 vs lib/decidim/comments/test/factories.rb in decidim-comments-0.25.0.rc2

- old
+ new

@@ -6,9 +6,10 @@ factory :comment, class: "Decidim::Comments::Comment" do author { build(:user, organization: commentable.organization) } commentable { build(:dummy_resource) } root_commentable { commentable } body { Decidim::Faker::Localized.paragraph } + participatory_space { commentable.try(:participatory_space) } after(:build) do |comment, evaluator| comment.body = if evaluator.body.is_a?(String) { comment.root_commentable.organization.default_locale || "en" => evaluator.body } else