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:
parent
0428853f4d
commit
362b072c6c
4 changed files with 9 additions and 5 deletions
|
@ -7,7 +7,7 @@ module ProcedureChorusConcern
|
|||
end
|
||||
|
||||
def chorusable?
|
||||
feature_enabled?(:chorus)
|
||||
feature_enabled?(:engagement_juridique_type_de_champ)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue