Merge pull request #970 from sgmap/recherche

Singularize the recherche controller
This commit is contained in:
gregoirenovel 2017-11-22 10:49:10 +01:00 committed by GitHub
commit 21811037ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
module NewGestionnaire
class RecherchesController < GestionnaireController
class RechercheController < GestionnaireController
def index
@search_terms = params[:q]

View file

@ -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

View file

@ -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) }