From c8e62ad0954a00be104f37fc6bdc4268dabca0af Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Wed, 22 Nov 2017 09:56:36 +0100 Subject: [PATCH] recherches -> recherche --- .../{recherches_controller.rb => recherche_controller.rb} | 2 +- .../new_gestionnaire/{recherches => recherche}/index.html.haml | 0 config/routes.rb | 2 +- ...cherches_controller_spec.rb => recherche_controller_spec.rb} | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename app/controllers/new_gestionnaire/{recherches_controller.rb => recherche_controller.rb} (90%) rename app/views/new_gestionnaire/{recherches => recherche}/index.html.haml (100%) rename spec/controllers/new_gestionnaire/{recherches_controller_spec.rb => recherche_controller_spec.rb} (94%) 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) }