Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
mvassallomeli authored Oct 30, 2023
1 parent c4cd886 commit ea5803f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/lib/little_monster/core/job_orchrestator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ea5803f

Please sign in to comment.