initialisation state for dossier with enum

This commit is contained in:
Xavier J 2015-09-22 18:30:20 +02:00
parent f7fb0f99bf
commit 888ac8b336
6 changed files with 21 additions and 5 deletions

View file

@ -67,6 +67,10 @@ RSpec.describe DossiersController, type: :controller do
it 'links procedure to dossier' do
expect(Dossier.last.procedure).to eq(Procedure.last)
end
it 'state of dossier is draft' do
expect(Dossier.last.state).to eq('draft')
end
end
context 'with non existant siret' do