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
|
module NewGestionnaire
|
||||||
class RecherchesController < GestionnaireController
|
class RechercheController < GestionnaireController
|
||||||
def index
|
def index
|
||||||
@search_terms = params[:q]
|
@search_terms = params[:q]
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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) }
|
Loading…
Reference in a new issue