test: fix not_to raise_error(SpecificErrorClass) false positive risk

This commit is contained in:
Colin Darie 2023-11-09 17:27:55 +01:00
parent c38dac789d
commit edb47d94f7
6 changed files with 7 additions and 7 deletions

View file

@ -32,7 +32,7 @@ RSpec.describe Cron::WeeklyOverviewJob, type: :job do
end
it { expect(InstructeurMailer).to have_received(:last_week_overview).with(instructeur) }
it { expect { run_job }.not_to raise_error(NoMethodError) }
it { expect { run_job }.not_to raise_error }
end
end