Merge pull request #970 from sgmap/recherche
Singularize the recherche controller
This commit is contained in:
commit
21811037ea
4 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
module NewGestionnaire
|
||||
class RecherchesController < GestionnaireController
|
||||
class RechercheController < GestionnaireController
|
||||
def index
|
||||
@search_terms = params[:q]
|
||||
|
|
@ -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
|
||||
|
|
|
@ -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) }
|
Loading…
Reference in a new issue