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 module NewGestionnaire
class RecherchesController < GestionnaireController class RechercheController < GestionnaireController
def index def index
@search_terms = params[:q] @search_terms = params[:q]

View file

@ -270,7 +270,7 @@ Rails.application.routes.draw do
post 'avis' => 'avis#create_avis' post 'avis' => 'avis#create_avis'
end end
end end
get "recherche" => "recherches#index" get "recherche" => "recherche#index"
end end
apipie apipie

View file

@ -1,6 +1,6 @@
require 'spec_helper' require 'spec_helper'
describe NewGestionnaire::RecherchesController, type: :controller do describe NewGestionnaire::RechercheController, type: :controller do
let(:dossier) { create(:dossier, :initiated) } let(:dossier) { create(:dossier, :initiated) }
let(:dossier2) { create(:dossier, :initiated, procedure: dossier.procedure) } let(:dossier2) { create(:dossier, :initiated, procedure: dossier.procedure) }
let(:gestionnaire) { create(:gestionnaire) } let(:gestionnaire) { create(:gestionnaire) }