test: fix not_to raise_error(SpecificErrorClass) false positive risk
This commit is contained in:
parent
c38dac789d
commit
edb47d94f7
6 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue