initialisation state for dossier with enum
This commit is contained in:
parent
f7fb0f99bf
commit
888ac8b336
6 changed files with 21 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue