Sha256: e848ce53542aad547fc9205e928cde6e1394321c98ecc0c278a452bdb472e7a7
Contents?: true
Size: 671 Bytes
Versions: 3
Compression:
Stored size: 671 Bytes
Contents
# frozen_string_literal: true require "decidim/components/namer" 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, :with_questions) } component { build(:surveys_component) } end end
Version data entries
3 entries across 3 versions & 1 rubygems