Sha256: 9e5aeba81cf57bdb0fceb358113dfb76e94e93797b7bfe34bf58e35d927af96c
Contents?: true
Size: 617 Bytes
Versions: 9
Compression:
Stored size: 617 Bytes
Contents
# frozen_string_literal: true require "decidim/core/test/factories" require "decidim/forms/test/factories" require "decidim/participatory_processes/test/factories" FactoryBot.define do factory :surveys_component, parent: :component do name { Decidim::Components::Namer.new(participatory_space.organization.available_locales, :surveys).i18n_name } manifest_name { :surveys } participatory_space { create(:participatory_process, :with_steps) } end factory :survey, class: Decidim::Surveys::Survey do questionnaire { build(:questionnaire) } component { build(:surveys_component) } end end
Version data entries
9 entries across 9 versions & 1 rubygems