From 9469734f29c65b797114a3992104fa453536e18a Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Thu, 7 Nov 2019 11:09:05 +0100 Subject: [PATCH] Follow flipper name convention to appears on manager admin page --- .../_left_panel_admin_procedurescontroller_navbar.html.haml | 4 ++-- spec/features/routing/full_scenario_spec.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/layouts/left_panels/_left_panel_admin_procedurescontroller_navbar.html.haml b/app/views/layouts/left_panels/_left_panel_admin_procedurescontroller_navbar.html.haml index 4f0284677..80a7e9d19 100644 --- a/app/views/layouts/left_panels/_left_panel_admin_procedurescontroller_navbar.html.haml +++ b/app/views/layouts/left_panels/_left_panel_admin_procedurescontroller_navbar.html.haml @@ -30,14 +30,14 @@ .procedure-list-element Administrateurs - - if !feature_enabled?(:routage) + - if !feature_enabled?(:administrateur_routage) %a#onglet-instructeurs{ href: url_for(admin_procedure_assigns_path(@procedure)) } .procedure-list-element{ class: ('active' if active == 'Instructeurs') } Instructeurs - if @procedure.missing_steps.include?(:instructeurs) %p.missing-steps (à compléter) - - if feature_enabled?(:routage) + - if feature_enabled?(:administrateur_routage) %a#onglet-instructeurs{ href: url_for(procedure_groupe_instructeurs_path(@procedure)) } .procedure-list-element Groupe d'instructeurs diff --git a/spec/features/routing/full_scenario_spec.rb b/spec/features/routing/full_scenario_spec.rb index 02e338c1a..3eeb141dc 100644 --- a/spec/features/routing/full_scenario_spec.rb +++ b/spec/features/routing/full_scenario_spec.rb @@ -7,7 +7,7 @@ feature 'The routing' do let(:scientifique_user) { create(:user, password: password) } let(:litteraire_user) { create(:user, password: password) } - before { Flipper.enable_actor(:routage, administrateur.user) } + before { Flipper.enable_actor(:administrateur_routage, administrateur.user) } scenario 'works' do login_as administrateur.user, scope: :user