Avoid sending notification emails about archived dossiers
This commit is contained in:
parent
a2131d0fcc
commit
f74fde3f80
2 changed files with 2 additions and 2 deletions
|
@ -389,7 +389,7 @@ describe Instructeur, type: :model do
|
|||
context 'when a notification exists' do
|
||||
before do
|
||||
allow(instructeur).to receive(:notifications_for_procedure)
|
||||
.with(procedure_to_assign, :all)
|
||||
.with(procedure_to_assign, :not_archived)
|
||||
.and_return([1, 2, 3])
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue