spec: fix avis/instruction view spec
Due to a faulty naming convention, the test was not executed.
This commit is contained in:
parent
1ad807ab6b
commit
41cf700c15
2 changed files with 4 additions and 4 deletions
|
@ -9,7 +9,7 @@
|
|||
%button.button.dropdown-button.icon-only{ 'aria-expanded' => 'false', 'aria-controls' => 'print-pj-menu' }
|
||||
%span.icon.attached
|
||||
%ul#print-pj-menu.print-menu.dropdown-content
|
||||
%li= link_to "Télécharger le dossier et toutes ses pièces jointes", telecharger_pjs_expert_avis_path(avis), target: "_blank", rel: "noopener", class: "menu-item menu-link"
|
||||
%li= link_to "Télécharger le dossier et toutes ses pièces jointes", telecharger_pjs_expert_avis_path(avis.procedure, avis), target: "_blank", rel: "noopener", class: "menu-item menu-link"
|
||||
|
||||
%nav.tabs
|
||||
%ul
|
||||
|
|
|
@ -2,8 +2,8 @@ describe 'experts/avis/instruction.html.haml', type: :view do
|
|||
let(:expert) { create(:expert) }
|
||||
let(:claimant) { create(:instructeur) }
|
||||
let(:procedure) { create(:procedure) }
|
||||
let!(:avis) { create(:avis, confidentiel: confidentiel, claimant: claimant, experts_procedure: experts_procedure) }
|
||||
let!(:experts_procedure) { create(:experts_procedure, expert: expert, procedure: procedure) }
|
||||
let(:experts_procedure) { create(:experts_procedure, expert: expert, procedure: procedure) }
|
||||
let(:avis) { create(:avis, confidentiel: confidentiel, claimant: claimant, experts_procedure: experts_procedure) }
|
||||
|
||||
before do
|
||||
assign(:avis, avis)
|
||||
|
@ -16,7 +16,7 @@ describe 'experts/avis/instruction.html.haml', type: :view do
|
|||
|
||||
context 'with a confidential avis' do
|
||||
let(:confidentiel) { true }
|
||||
it { is_expected.to have_text("Cet avis est confidentiel et n'est pas affiché aux autres experts consultés") }
|
||||
it { is_expected.to have_text("Cet avis est confidentiel et n’est pas affiché aux autres experts consultés") }
|
||||
end
|
||||
|
||||
context 'with a not confidential avis' do
|
Loading…
Reference in a new issue