Add job exception log methods to champ and dossier
This commit is contained in:
parent
78a07ef021
commit
a591d5528e
5 changed files with 45 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue