diff --git a/app/controllers/new_gestionnaire/recherches_controller.rb b/app/controllers/new_gestionnaire/recherche_controller.rb similarity index 90% rename from app/controllers/new_gestionnaire/recherches_controller.rb rename to app/controllers/new_gestionnaire/recherche_controller.rb index d0d493805..4d4ce7798 100644 --- a/app/controllers/new_gestionnaire/recherches_controller.rb +++ b/app/controllers/new_gestionnaire/recherche_controller.rb @@ -1,5 +1,5 @@ module NewGestionnaire - class RecherchesController < GestionnaireController + class RechercheController < GestionnaireController def index @search_terms = params[:q] diff --git a/app/views/new_gestionnaire/recherches/index.html.haml b/app/views/new_gestionnaire/recherche/index.html.haml similarity index 100% rename from app/views/new_gestionnaire/recherches/index.html.haml rename to app/views/new_gestionnaire/recherche/index.html.haml diff --git a/config/routes.rb b/config/routes.rb index 18a264003..65ec0c82e 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -270,7 +270,7 @@ Rails.application.routes.draw do post 'avis' => 'avis#create_avis' end end - get "recherche" => "recherches#index" + get "recherche" => "recherche#index" end apipie diff --git a/spec/controllers/new_gestionnaire/recherches_controller_spec.rb b/spec/controllers/new_gestionnaire/recherche_controller_spec.rb similarity index 94% rename from spec/controllers/new_gestionnaire/recherches_controller_spec.rb rename to spec/controllers/new_gestionnaire/recherche_controller_spec.rb index 06a3f557a..179226a93 100644 --- a/spec/controllers/new_gestionnaire/recherches_controller_spec.rb +++ b/spec/controllers/new_gestionnaire/recherche_controller_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -describe NewGestionnaire::RecherchesController, type: :controller do +describe NewGestionnaire::RechercheController, type: :controller do let(:dossier) { create(:dossier, :initiated) } let(:dossier2) { create(:dossier, :initiated, procedure: dossier.procedure) } let(:gestionnaire) { create(:gestionnaire) }