lib/decidim/dev/test/factories.rb in decidim-dev-0.27.5 vs lib/decidim/dev/test/factories.rb in decidim-dev-0.27.6
- old
+ new
@@ -1,8 +1,12 @@
# frozen_string_literal: true
FactoryBot.define do
factory :dummy_component, parent: :component do
- name { Decidim::Components::Namer.new(participatory_space.organization.available_locales, :surveys).i18n_name }
+ transient do
+ skip_injection { false }
+ end
+
+ name { generate_component_name(participatory_space.organization.available_locales, :dummy, skip_injection: skip_injection) }
manifest_name { :dummy }
end
end