Sha256: 59d0e02730fba14f59073f4c1f8a1731c881971faf15a3ea80942e31342d616c
Contents?: true
Size: 835 Bytes
Versions: 4
Compression:
Stored size: 835 Bytes
Contents
# frozen_string_literal: true require "decidim/faker/localized" require "decidim/core/test/factories" require "decidim/participatory_processes/test/factories" FactoryBot.define do factory :post_component, parent: :component do name { Decidim::Components::Namer.new(participatory_space.organization.available_locales, :blogs).i18n_name } manifest_name { :blogs } participatory_space { create(:participatory_process, :with_steps, organization: organization) } end factory :post, class: "Decidim::Blogs::Post" do title { Decidim::Faker::Localized.sentence(3) } body { Decidim::Faker::Localized.wrapped("<p>", "</p>") { Decidim::Faker::Localized.sentence(4) } } component { build(:component, manifest_name: "blogs") } author { build(:user, :confirmed, organization: component.organization) } end end
Version data entries
4 entries across 4 versions & 1 rubygems