refactor(pj_list): extract pj list in a concern and simplify
This commit is contained in:
parent
e235131c4c
commit
6445337be7
7 changed files with 107 additions and 112 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue