fetch all notification at once

This commit is contained in:
simon lehericey 2021-04-07 18:03:03 +02:00
parent 87bee9d234
commit db23a853a9
4 changed files with 44 additions and 28 deletions

View file

@ -92,8 +92,8 @@ describe NotificationService do
context 'when there is a notification on this procedure' do
before do
allow_any_instance_of(Instructeur).to receive(:notifications_for_procedure)
.and_return([12])
allow_any_instance_of(Instructeur).to receive(:notifications_for_groupe_instructeurs)
.and_return(en_cours: [12], termines: [])
end
it do