Add job exception log methods to champ and dossier

This commit is contained in:
Paul Chavard 2021-02-04 19:24:52 +01:00
parent 78a07ef021
commit a591d5528e
5 changed files with 45 additions and 2 deletions

View file

@ -1424,4 +1424,16 @@ describe Dossier do
end
end
end
describe '#log_api_entreprise_job_exception' do
let(:dossier) { create(:dossier) }
context "add execption to the log" do
before do
dossier.log_api_entreprise_job_exception(StandardError.new('My special exception!'))
end
it { expect(dossier.api_entreprise_job_exceptions).to eq(['#<StandardError: My special exception!>']) }
end
end
end