Sha256: c71f3d4bcf1ec6396bbc3face4de390cdda644fbe05cc401e4427c12513fe2f0
Contents?: true
Size: 690 Bytes
Versions: 18
Compression:
Stored size: 690 Bytes
Contents
# frozen_string_literal: true require "decidim/faker/localized" require "decidim/dev" FactoryGirl.define do factory :result_feature, parent: :feature do name { Decidim::Features::Namer.new(participatory_space.organization.available_locales, :results).i18n_name } manifest_name :results participatory_space { create(:participatory_process, :with_steps, organization: organization) } end factory :result, class: Decidim::Results::Result do title { Decidim::Faker::Localized.sentence(3) } description { Decidim::Faker::Localized.wrapped("<p>", "</p>") { Decidim::Faker::Localized.sentence(4) } } feature { build(:feature, manifest_name: "results") } end end
Version data entries
18 entries across 18 versions & 2 rubygems