lib/decidim/comments/test/factories.rb in decidim-comments-0.26.1 vs lib/decidim/comments/test/factories.rb in decidim-comments-0.26.2
- old
+ new
@@ -17,9 +17,14 @@
evaluator.body
end
comment.body = Decidim::ContentProcessor.parse_with_processor(:hashtag, comment.body, current_organization: comment.root_commentable.organization).rewrite
end
+ trait :deleted do
+ created_at { 1.day.ago }
+ deleted_at { 1.hour.ago }
+ end
+
trait :comment_on_comment do
author { build(:user, organization: root_commentable.organization) }
commentable do
build(
:comment,