From ea5803f152ec5627f7abaa096b4e2e402f59438d Mon Sep 17 00:00:00 2001 From: Manuel Alejandro Vassallo Date: Mon, 30 Oct 2023 15:08:08 -0300 Subject: [PATCH] Test --- spec/lib/little_monster/core/job_orchrestator_spec.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spec/lib/little_monster/core/job_orchrestator_spec.rb b/spec/lib/little_monster/core/job_orchrestator_spec.rb index 450de61..1275d16 100644 --- a/spec/lib/little_monster/core/job_orchrestator_spec.rb +++ b/spec/lib/little_monster/core/job_orchrestator_spec.rb @@ -626,6 +626,13 @@ subject.handle_error error expect(subject).to have_received(:do_retry).with error end + + it 'sets error and raw_error' do + error = LittleMonster::TaskError.new + subject.handle_error error + expect(subject.job.error).to eq(message: error.message, type: error.class.to_s, retry: subject.job.retries) + expect(subject.job.raw_error).to eq(error) + end end end