Move the avis list partial in the shared folder
This commit is contained in:
parent
e4f7f20698
commit
0c995b63cf
4 changed files with 4 additions and 4 deletions
|
@ -41,4 +41,4 @@
|
||||||
.send-wrapper
|
.send-wrapper
|
||||||
= f.submit 'Demander un avis', class: 'button send'
|
= f.submit 'Demander un avis', class: 'button send'
|
||||||
|
|
||||||
= render partial: 'avis_list', locals: { avis: @dossier.avis_for(current_gestionnaire), avis_seen_at: nil }
|
= render partial: 'new_gestionnaire/shared/avis/list', locals: { avis: @dossier.avis_for(current_gestionnaire), avis_seen_at: nil }
|
||||||
|
|
|
@ -17,4 +17,4 @@
|
||||||
.send-wrapper
|
.send-wrapper
|
||||||
= f.submit 'Demander un avis', class: 'button send', data: { disable_with: "Envoi..." }
|
= f.submit 'Demander un avis', class: 'button send', data: { disable_with: "Envoi..." }
|
||||||
|
|
||||||
= render partial: 'new_gestionnaire/avis/avis_list', locals: { avis: @dossier.avis, avis_seen_at: @avis_seen_at }
|
= render partial: 'new_gestionnaire/shared/avis/list', locals: { avis: @dossier.avis, avis_seen_at: @avis_seen_at }
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
describe 'new_gestionnaire/avis/avis_list.html.haml', type: :view do
|
describe 'new_gestionnaire/shared/avis/_list.html.haml', type: :view do
|
||||||
before { view.extend DossierHelper }
|
before { view.extend DossierHelper }
|
||||||
|
|
||||||
subject { render 'new_gestionnaire/avis/avis_list.html.haml', avis: avis, avis_seen_at: seen_at, current_gestionnaire: gestionnaire }
|
subject { render 'new_gestionnaire/shared/avis/list.html.haml', avis: avis, avis_seen_at: seen_at, current_gestionnaire: gestionnaire }
|
||||||
|
|
||||||
let(:gestionnaire) { create(:gestionnaire) }
|
let(:gestionnaire) { create(:gestionnaire) }
|
||||||
let(:avis) { [create(:avis, claimant: gestionnaire)] }
|
let(:avis) { [create(:avis, claimant: gestionnaire)] }
|
Loading…
Reference in a new issue