DubiousProcedure: ensure that hidden procedure are not detected

This commit is contained in:
simon lehericey 2018-05-25 10:50:18 +02:00
parent 959097ce8b
commit 9f06308dbd

View file

@ -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