REFACTOR : Change dossier state 'Proposed' To 'Submitted'

This commit is contained in:
Xavier J 2015-11-02 11:23:55 +01:00
parent 0e8919a523
commit c0733849d5
19 changed files with 54 additions and 49 deletions

View file

@ -47,9 +47,9 @@ describe 'backoffice/dossiers/show.html.haml', type: :view do
end
context 'gestion des etats du dossier' do
context 'when dossier have state proposed' do
context 'when dossier have state submitted' do
before do
dossier.proposed!
dossier.submitted!
render
end

View file

@ -8,7 +8,7 @@ describe 'backoffice/index.html.haml', type: :view do
assign(:dossiers_en_attente, Dossier.en_attente.decorate)
assign(:dossiers_termine, Dossier.termine.decorate)
decorate_dossier.proposed!
decorate_dossier.submitted!
render
end
subject { rendered }

View file

@ -46,7 +46,7 @@ describe 'users/carte/show.html.haml', type: :view do
end
context 'si la page précédente est recapitularif' do
let(:state) { 'proposed' }
let(:state) { 'submitted' }
it 'le bouton "Etape suivante" n\'est pas présent' do
expect(rendered).to_not have_selector('#etape_suivante')

View file

@ -70,7 +70,7 @@ describe 'users/description/show.html.haml', type: :view do
context 'si la page précédente est recapitularif' do
before do
dossier.proposed!
dossier.submitted!
dossier.reload
render
end

View file

@ -55,9 +55,9 @@ describe 'users/recapitulatif/show.html.haml', type: :view do
end
end
context 'when dossier state is proposed' do
context 'when dossier state is submitted' do
before do
dossier.proposed!
dossier.submitted!
render
end