amelioration(chorus): flip sur le type de champ engagement_juridique afin d'activer la tuile et le type de champs avec un seul flag

This commit is contained in:
Martin 2023-10-23 08:58:50 +02:00
parent 0428853f4d
commit 362b072c6c
4 changed files with 9 additions and 5 deletions

View file

@ -7,7 +7,7 @@ module ProcedureChorusConcern
end end
def chorusable? def chorusable?
feature_enabled?(:chorus) feature_enabled?(:engagement_juridique_type_de_champ)
end end
end end
end end

View file

@ -13,7 +13,7 @@ describe Procedure::Card::ChorusComponent, type: :component do
end end
end end
context 'feature flag active' do 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 it 'render the template' do
subject subject

View file

@ -4,6 +4,7 @@ describe TypesDeChampEditor::ChampComponent, type: :component do
let(:routing_rules_stable_ids) { [] } let(:routing_rules_stable_ids) { [] }
before do 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) allow_any_instance_of(Procedure).to receive(:stable_ids_used_by_routing_rules).and_return(routing_rules_stable_ids)
render_inline(component) render_inline(component)
end end

View file

@ -91,7 +91,8 @@ describe ProcedureExportService do
"epci (Département)", "epci (Département)",
"cojo", "cojo",
"expression_reguliere", "expression_reguliere",
"rnf" "rnf",
"engagement_juridique"
] ]
end end
@ -204,7 +205,8 @@ describe ProcedureExportService do
"epci (Département)", "epci (Département)",
"cojo", "cojo",
"expression_reguliere", "expression_reguliere",
"rnf" "rnf",
"engagement_juridique"
] ]
end end
@ -300,7 +302,8 @@ describe ProcedureExportService do
"epci (Département)", "epci (Département)",
"cojo", "cojo",
"expression_reguliere", "expression_reguliere",
"rnf" "rnf",
"engagement_juridique"
] ]
end end