refactor instructeur_avis_url

This commit is contained in:
Christophe Robillard 2020-05-20 16:32:06 +02:00
parent b0cfb2c02a
commit 4839506374
9 changed files with 14 additions and 14 deletions

View file

@ -29,7 +29,7 @@ describe DossierLinkHelper do
let(:instructeur) { create(:instructeur) }
let!(:avis) { create(:avis, dossier: dossier, instructeur: instructeur) }
it { expect(helper.dossier_linked_path(instructeur, dossier)).to eq(instructeur_avis_path(avis)) }
it { expect(helper.dossier_linked_path(instructeur, dossier)).to eq(instructeur_avis_path(avis.dossier.procedure, avis)) }
end
context "when access as user" do