[fix #504] Dossier: closed -> accepte
This commit is contained in:
parent
3dda27b281
commit
a13256f73d
28 changed files with 78 additions and 58 deletions
|
@ -15,5 +15,11 @@ describe DossierSerializer do
|
|||
it { is_expected.to include(received_at: dossier.en_instruction_at) }
|
||||
it { is_expected.to include(state: 'received') }
|
||||
end
|
||||
|
||||
context 'when the dossier is accepte' do
|
||||
let(:dossier) { create(:dossier, state: :accepte) }
|
||||
|
||||
it { is_expected.to include(state: 'closed') }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -17,6 +17,12 @@ describe DossierTableExportSerializer do
|
|||
it { is_expected.to include(received_at: dossier.en_instruction_at) }
|
||||
it { is_expected.to include(state: 'received') }
|
||||
end
|
||||
|
||||
context 'when the dossier is accepte' do
|
||||
let(:dossier) { create(:dossier, state: :accepte) }
|
||||
|
||||
it { is_expected.to include(state: 'closed') }
|
||||
end
|
||||
end
|
||||
|
||||
describe '#emails_accompagnateurs' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue