lib/decidim/comments/test/factories.rb in decidim-comments-0.7.4 vs lib/decidim/comments/test/factories.rb in decidim-comments-0.8.0
- old
+ new
@@ -1,7 +1,9 @@
# frozen_string_literal: true
-FactoryGirl.define do
+require "decidim/core/test/factories"
+
+FactoryBot.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 }