[fix #504] Dossier: closed -> accepte

This commit is contained in:
Simon Lehericey 2017-12-04 18:00:12 +01:00 committed by LeSim
parent 3dda27b281
commit a13256f73d
28 changed files with 78 additions and 58 deletions

View file

@ -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

View file

@ -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