DubiousProcedure: ensure that hidden procedure are not detected
This commit is contained in:
parent
959097ce8b
commit
9f06308dbd
1 changed files with 6 additions and 0 deletions
|
@ -45,6 +45,12 @@ RSpec.describe FindDubiousProceduresJob, type: :job do
|
|||
|
||||
it { expect(AdministrationMailer).to have_received(:dubious_procedures).with([]) }
|
||||
end
|
||||
|
||||
context 'and a hidden procedure' do
|
||||
let(:procedure) { create(:procedure, :hidden) }
|
||||
|
||||
it { expect(AdministrationMailer).to have_received(:dubious_procedures).with([]) }
|
||||
end
|
||||
end
|
||||
|
||||
context 'with no suspicious champs' do
|
||||
|
|
Loading…
Reference in a new issue