Merge branch 'staging'
This commit is contained in:
commit
1d5a1f19de
5 changed files with 16 additions and 16 deletions
|
@ -10,11 +10,11 @@ fr:
|
||||||
state:
|
state:
|
||||||
draft: "Brouillon"
|
draft: "Brouillon"
|
||||||
initiated: "Nouveau"
|
initiated: "Nouveau"
|
||||||
replied: "Répondu"
|
replied: "En construction"
|
||||||
updated: "Mis à jour"
|
updated: "En construction"
|
||||||
validated: "Figé"
|
validated: "Figé"
|
||||||
submitted: "Déposé"
|
submitted: "Déposé / À réceptionner"
|
||||||
received: "Reçu"
|
received: "En instruction"
|
||||||
closed: "Accepté"
|
closed: "Accepté"
|
||||||
refused: "Refusé"
|
refused: "Refusé"
|
||||||
without_continuation: "Sans suite"
|
without_continuation: "Sans suite"
|
||||||
|
|
|
@ -29,12 +29,12 @@ describe DossierDecorator do
|
||||||
|
|
||||||
it 'replied is repondu' do
|
it 'replied is repondu' do
|
||||||
dossier.replied!
|
dossier.replied!
|
||||||
expect(subject).to eq('Répondu')
|
expect(subject).to eq('En construction')
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'updated is mis à jour' do
|
it 'updated is mis à jour' do
|
||||||
dossier.updated!
|
dossier.updated!
|
||||||
expect(subject).to eq('Mis à jour')
|
expect(subject).to eq('En construction')
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'validated is valide' do
|
it 'validated is valide' do
|
||||||
|
@ -44,7 +44,7 @@ describe DossierDecorator do
|
||||||
|
|
||||||
it 'submitted is dépose' do
|
it 'submitted is dépose' do
|
||||||
dossier.submitted!
|
dossier.submitted!
|
||||||
expect(subject).to eq('Déposé')
|
expect(subject).to eq('Déposé / À réceptionner')
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'closed is traité' do
|
it 'closed is traité' do
|
||||||
|
@ -54,7 +54,7 @@ describe DossierDecorator do
|
||||||
|
|
||||||
it 'received is reçu' do
|
it 'received is reçu' do
|
||||||
dossier.received!
|
dossier.received!
|
||||||
expect(subject).to eq('Reçu')
|
expect(subject).to eq('En instruction')
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'without_continuation is traité' do
|
it 'without_continuation is traité' do
|
||||||
|
|
|
@ -29,7 +29,7 @@ describe AdminProceduresShowFacades do
|
||||||
describe '.dossiers_for_pie_highchart' do
|
describe '.dossiers_for_pie_highchart' do
|
||||||
subject { super().dossiers_for_pie_highchart }
|
subject { super().dossiers_for_pie_highchart }
|
||||||
|
|
||||||
it { expect(subject).to eq({'Nouveau' => 1, 'Figé' => 2, "Mis à jour"=>1}) }
|
it { expect(subject).to eq({'Nouveau' => 1, 'Figé' => 2, "En construction"=>1}) }
|
||||||
end
|
end
|
||||||
|
|
||||||
describe '.dossiers_archived_by_state_total' do
|
describe '.dossiers_archived_by_state_total' do
|
||||||
|
|
|
@ -45,7 +45,7 @@ describe 'layouts/left_panels/_left_panel_backoffice_dossierscontroller_show.htm
|
||||||
render
|
render
|
||||||
end
|
end
|
||||||
|
|
||||||
it { expect(rendered).to have_content('Répondu') }
|
it { expect(rendered).to have_content('En construction') }
|
||||||
|
|
||||||
it 'button Déclarer complet is present' do
|
it 'button Déclarer complet is present' do
|
||||||
expect(rendered).to have_css('.action')
|
expect(rendered).to have_css('.action')
|
||||||
|
@ -60,7 +60,7 @@ describe 'layouts/left_panels/_left_panel_backoffice_dossierscontroller_show.htm
|
||||||
render
|
render
|
||||||
end
|
end
|
||||||
|
|
||||||
it { expect(rendered).to have_content('Mis à jour') }
|
it { expect(rendered).to have_content('En construction') }
|
||||||
|
|
||||||
it 'button Déclarer complet is present' do
|
it 'button Déclarer complet is present' do
|
||||||
expect(rendered).to have_css('.action')
|
expect(rendered).to have_css('.action')
|
||||||
|
@ -90,7 +90,7 @@ describe 'layouts/left_panels/_left_panel_backoffice_dossierscontroller_show.htm
|
||||||
render
|
render
|
||||||
end
|
end
|
||||||
|
|
||||||
it { expect(rendered).to have_content('Déposé') }
|
it { expect(rendered).to have_content('Déposé / À réceptionner') }
|
||||||
|
|
||||||
it 'button Accuser réception is present' do
|
it 'button Accuser réception is present' do
|
||||||
expect(rendered).to have_css('.action')
|
expect(rendered).to have_css('.action')
|
||||||
|
@ -109,7 +109,7 @@ describe 'layouts/left_panels/_left_panel_backoffice_dossierscontroller_show.htm
|
||||||
render
|
render
|
||||||
end
|
end
|
||||||
|
|
||||||
it { expect(rendered).to have_content('Reçu') }
|
it { expect(rendered).to have_content('En instruction') }
|
||||||
|
|
||||||
it 'button accepter / refuser / classer sans suite are present' do
|
it 'button accepter / refuser / classer sans suite are present' do
|
||||||
expect(rendered).to have_css('form[data-toggle="tooltip"][title="Accepter"]')
|
expect(rendered).to have_css('form[data-toggle="tooltip"][title="Accepter"]')
|
||||||
|
|
|
@ -27,7 +27,7 @@ describe 'layouts/left_panels/_left_panel_users_recapitulatifcontroller_show.htm
|
||||||
render
|
render
|
||||||
end
|
end
|
||||||
|
|
||||||
it { expect(rendered).to have_content('Répondu') }
|
it { expect(rendered).to have_content('En construction') }
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'when dossier state is updated' do
|
context 'when dossier state is updated' do
|
||||||
|
@ -37,7 +37,7 @@ describe 'layouts/left_panels/_left_panel_users_recapitulatifcontroller_show.htm
|
||||||
render
|
render
|
||||||
end
|
end
|
||||||
|
|
||||||
it { expect(rendered).to have_content('Mis à jour') }
|
it { expect(rendered).to have_content('En construction') }
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'when dossier state is validated' do
|
context 'when dossier state is validated' do
|
||||||
|
@ -69,7 +69,7 @@ describe 'layouts/left_panels/_left_panel_users_recapitulatifcontroller_show.htm
|
||||||
render
|
render
|
||||||
end
|
end
|
||||||
|
|
||||||
it { expect(rendered).to have_content('Déposé') }
|
it { expect(rendered).to have_content('Déposé / À réceptionner') }
|
||||||
|
|
||||||
it 'button Editer mon dossier n\'est plus present' do
|
it 'button Editer mon dossier n\'est plus present' do
|
||||||
expect(rendered).not_to have_css('#maj_infos')
|
expect(rendered).not_to have_css('#maj_infos')
|
||||||
|
|
Loading…
Reference in a new issue