Avis: show

This commit is contained in:
Simon Lehericey 2017-09-06 11:26:32 +02:00
parent 3cc09c98f9
commit a1f9f7aa75
5 changed files with 76 additions and 1 deletions

View file

@ -26,4 +26,12 @@ describe NewGestionnaire::AvisController, type: :controller do
it { expect(assigns(:statut)).to eq('donnes') }
end
end
describe '#show' do
before { get :show, { id: avis_without_answer.id } }
it { expect(response).to have_http_status(:success) }
it { expect(assigns(:avis)).to eq(avis_without_answer) }
it { expect(assigns(:dossier)).to eq(dossier) }
end
end