Sha256: d6c769e45a06e6141a587a3439091efd26618de27db80cb67f0c958691e53c38

Contents?: true

Size: 441 Bytes

Versions: 75

Compression:

Stored size: 441 Bytes

Contents

# frozen_string_literal: true

require "decidim/core/test/factories"

FactoryBot.define do
  factory :<%= component_name %>_component, parent: :component do
    name { Decidim::Components::Namer.new(participatory_space.organization.available_locales, :<%= component_name %>).i18n_name }
    manifest_name :<%= component_name %>
    participatory_space { create(:participatory_process, :with_steps) }
  end

  # Add engine factories here
end

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
decidim-generators-0.27.9 lib/decidim/generators/component_templates/lib/decidim/component/test/factories.rb.erb
decidim-generators-0.27.8 lib/decidim/generators/component_templates/lib/decidim/component/test/factories.rb.erb
decidim-generators-0.27.7 lib/decidim/generators/component_templates/lib/decidim/component/test/factories.rb.erb
decidim-generators-0.27.6 lib/decidim/generators/component_templates/lib/decidim/component/test/factories.rb.erb
decidim-generators-0.26.10 lib/decidim/generators/component_templates/lib/decidim/component/test/factories.rb.erb
decidim-generators-0.26.9 lib/decidim/generators/component_templates/lib/decidim/component/test/factories.rb.erb
decidim-generators-0.27.5 lib/decidim/generators/component_templates/lib/decidim/component/test/factories.rb.erb
decidim-generators-0.26.8 lib/decidim/generators/component_templates/lib/decidim/component/test/factories.rb.erb
decidim-generators-0.27.4 lib/decidim/generators/component_templates/lib/decidim/component/test/factories.rb.erb
decidim-generators-0.27.3 lib/decidim/generators/component_templates/lib/decidim/component/test/factories.rb.erb
decidim-generators-0.26.7 lib/decidim/generators/component_templates/lib/decidim/component/test/factories.rb.erb
decidim-generators-0.26.5 lib/decidim/generators/component_templates/lib/decidim/component/test/factories.rb.erb
decidim-generators-0.27.2 lib/decidim/generators/component_templates/lib/decidim/component/test/factories.rb.erb
decidim-generators-0.27.1 lib/decidim/generators/component_templates/lib/decidim/component/test/factories.rb.erb
decidim-generators-0.26.4 lib/decidim/generators/component_templates/lib/decidim/component/test/factories.rb.erb
decidim-generators-0.27.0 lib/decidim/generators/component_templates/lib/decidim/component/test/factories.rb.erb
decidim-generators-0.26.3 lib/decidim/generators/component_templates/lib/decidim/component/test/factories.rb.erb
decidim-generators-0.27.0.rc2 lib/decidim/generators/component_templates/lib/decidim/component/test/factories.rb.erb
decidim-generators-0.27.0.rc1 lib/decidim/generators/component_templates/lib/decidim/component/test/factories.rb.erb
decidim-generators-0.26.2 lib/decidim/generators/component_templates/lib/decidim/component/test/factories.rb.erb