refactor(pj_list): extract pj list in a concern and simplify

This commit is contained in:
simon lehericey 2024-04-26 15:36:30 +02:00
parent e235131c4c
commit 6445337be7
No known key found for this signature in database
GPG key ID: CDE670D827C7B3C5
7 changed files with 107 additions and 112 deletions

View file

@ -110,7 +110,7 @@ describe 'shared/_procedure_description', type: :view do
context 'caching', caching: true do
it "works" do
expect(procedure).to receive(:pieces_jointes_list?).once
expect(procedure).to receive(:public_wrapped_partionned_pjs).once
2.times { render partial: 'shared/procedure_description', locals: { procedure: } }
end