lib/decidim/assemblies/test/factories.rb in decidim-assemblies-0.7.4 vs lib/decidim/assemblies/test/factories.rb in decidim-assemblies-0.8.0
- old
+ new
@@ -1,15 +1,15 @@
# frozen_string_literal: true
require "decidim/faker/localized"
require "decidim/dev"
-FactoryGirl.define do
+FactoryBot.define do
sequence(:assembly_slug) do |n|
"#{Faker::Internet.slug(nil, "-")}-#{n}"
end
- factory :assembly, class: Decidim::Assembly do
+ factory :assembly, class: "Decidim::Assembly" do
title { Decidim::Faker::Localized.sentence(3) }
slug { generate(:assembly_slug) }
subtitle { Decidim::Faker::Localized.sentence(1) }
short_description { Decidim::Faker::Localized.wrapped("<p>", "</p>") { Decidim::Faker::Localized.sentence(2) } }
description { Decidim::Faker::Localized.wrapped("<p>", "</p>") { Decidim::Faker::Localized.sentence(4) } }