Sha256: 919dbe3e2fe2017c9c0eac875f9f7e58d3d8903b296756c1ad974a1a5b070a81

Contents?: true

Size: 476 Bytes

Versions: 13

Compression:

Stored size: 476 Bytes

Contents

# frozen_string_literal: true

require "decidim/components/namer"
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

13 entries across 13 versions & 1 rubygems

Version Path
decidim-generators-0.29.1 lib/decidim/generators/component_templates/lib/decidim/component/test/factories.rb.erb
decidim-generators-0.28.4 lib/decidim/generators/component_templates/lib/decidim/component/test/factories.rb.erb
decidim-generators-0.29.0 lib/decidim/generators/component_templates/lib/decidim/component/test/factories.rb.erb
decidim-generators-0.28.3 lib/decidim/generators/component_templates/lib/decidim/component/test/factories.rb.erb
decidim-generators-0.29.0.rc4 lib/decidim/generators/component_templates/lib/decidim/component/test/factories.rb.erb
decidim-generators-0.29.0.rc3 lib/decidim/generators/component_templates/lib/decidim/component/test/factories.rb.erb
decidim-generators-0.29.0.rc2 lib/decidim/generators/component_templates/lib/decidim/component/test/factories.rb.erb
decidim-generators-0.29.0.rc1 lib/decidim/generators/component_templates/lib/decidim/component/test/factories.rb.erb
decidim-generators-0.28.2 lib/decidim/generators/component_templates/lib/decidim/component/test/factories.rb.erb
decidim-generators-0.28.1 lib/decidim/generators/component_templates/lib/decidim/component/test/factories.rb.erb
decidim-generators-0.28.0 lib/decidim/generators/component_templates/lib/decidim/component/test/factories.rb.erb
decidim-generators-0.28.0.rc5 lib/decidim/generators/component_templates/lib/decidim/component/test/factories.rb.erb
decidim-generators-0.28.0.rc4 lib/decidim/generators/component_templates/lib/decidim/component/test/factories.rb.erb