diff --git a/app/models/concerns/procedure_chorus_concern.rb b/app/models/concerns/procedure_chorus_concern.rb index fe71152f5..d940dfafd 100644 --- a/app/models/concerns/procedure_chorus_concern.rb +++ b/app/models/concerns/procedure_chorus_concern.rb @@ -7,7 +7,7 @@ module ProcedureChorusConcern end def chorusable? - feature_enabled?(:chorus) + feature_enabled?(:engagement_juridique_type_de_champ) end end end diff --git a/spec/components/procedures/card/chorus_component_spec.rb b/spec/components/procedures/card/chorus_component_spec.rb index b5148c376..c1cba9bbb 100644 --- a/spec/components/procedures/card/chorus_component_spec.rb +++ b/spec/components/procedures/card/chorus_component_spec.rb @@ -13,7 +13,7 @@ describe Procedure::Card::ChorusComponent, type: :component do end end context 'feature flag active' do - before { Flipper.enable_actor :chorus, procedure } + before { Flipper.enable_actor :engagement_juridique_type_de_champ, procedure } it 'render the template' do subject diff --git a/spec/components/types_de_champ_editor/champ_component_spec.rb b/spec/components/types_de_champ_editor/champ_component_spec.rb index 1a634ddfb..605e4cd4b 100644 --- a/spec/components/types_de_champ_editor/champ_component_spec.rb +++ b/spec/components/types_de_champ_editor/champ_component_spec.rb @@ -4,6 +4,7 @@ describe TypesDeChampEditor::ChampComponent, type: :component do let(:routing_rules_stable_ids) { [] } before do + Flipper.enable_actor(:engagement_juridique_type_de_champ, procedure) allow_any_instance_of(Procedure).to receive(:stable_ids_used_by_routing_rules).and_return(routing_rules_stable_ids) render_inline(component) end diff --git a/spec/services/procedure_export_service_spec.rb b/spec/services/procedure_export_service_spec.rb index 2b758b437..b401e9321 100644 --- a/spec/services/procedure_export_service_spec.rb +++ b/spec/services/procedure_export_service_spec.rb @@ -91,7 +91,8 @@ describe ProcedureExportService do "epci (Département)", "cojo", "expression_reguliere", - "rnf" + "rnf", + "engagement_juridique" ] end @@ -204,7 +205,8 @@ describe ProcedureExportService do "epci (Département)", "cojo", "expression_reguliere", - "rnf" + "rnf", + "engagement_juridique" ] end @@ -300,7 +302,8 @@ describe ProcedureExportService do "epci (Département)", "cojo", "expression_reguliere", - "rnf" + "rnf", + "engagement_juridique" ] end