Enable champ repetition for all
This commit is contained in:
parent
9eaf14968f
commit
e68d2cf5e2
3 changed files with 1 additions and 5 deletions
|
@ -64,8 +64,7 @@ module ProcedureHelper
|
||||||
private
|
private
|
||||||
|
|
||||||
TOGGLES = {
|
TOGGLES = {
|
||||||
TypeDeChamp.type_champs.fetch(:integer_number) => :champ_integer_number?,
|
TypeDeChamp.type_champs.fetch(:integer_number) => :champ_integer_number?
|
||||||
TypeDeChamp.type_champs.fetch(:repetition) => :champ_repetition?
|
|
||||||
}
|
}
|
||||||
|
|
||||||
def types_de_champ_types
|
def types_de_champ_types
|
||||||
|
|
|
@ -9,8 +9,6 @@ Flipflop.configure do
|
||||||
group :champs do
|
group :champs do
|
||||||
feature :champ_integer_number,
|
feature :champ_integer_number,
|
||||||
title: "Champ nombre entier"
|
title: "Champ nombre entier"
|
||||||
feature :champ_repetition,
|
|
||||||
title: "Bloc répétable"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
feature :web_hook
|
feature :web_hook
|
||||||
|
|
|
@ -5,7 +5,6 @@ feature 'As an administrateur I can edit types de champ', js: true do
|
||||||
let(:procedure) { create(:procedure) }
|
let(:procedure) { create(:procedure) }
|
||||||
|
|
||||||
before do
|
before do
|
||||||
Flipflop::FeatureSet.current.test!.switch!(:champ_repetition, true)
|
|
||||||
login_as administrateur, scope: :administrateur
|
login_as administrateur, scope: :administrateur
|
||||||
visit champs_procedure_path(procedure)
|
visit champs_procedure_path(procedure)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue