Wording
This commit is contained in:
parent
4de6a9595a
commit
a334888363
10 changed files with 25 additions and 24 deletions
|
@ -24,7 +24,7 @@ describe DossierDecorator do
|
|||
|
||||
it 'initiated is initiate' do
|
||||
dossier.initiated!
|
||||
expect(subject).to eq('Nouveau')
|
||||
expect(subject).to eq('En construction')
|
||||
end
|
||||
|
||||
it 'replied is repondu' do
|
||||
|
|
|
@ -26,7 +26,7 @@ describe AdminProceduresShowFacades do
|
|||
describe '.dossiers_for_pie_highchart' do
|
||||
subject { super().dossiers_for_pie_highchart }
|
||||
|
||||
it { expect(subject).to eq({'Nouveau' => 1, "En construction"=>1}) }
|
||||
it { expect(subject).to eq({ 'En construction' => 3 }) }
|
||||
end
|
||||
|
||||
describe '.dossiers_archived_by_state_total' do
|
||||
|
|
|
@ -34,7 +34,7 @@ feature 'on click on tabs button' do
|
|||
context 'when he click on tabs en examen' do
|
||||
before do
|
||||
visit users_dossiers_url(liste: :en_instruction)
|
||||
page.click_on 'En examen 1'
|
||||
page.click_on 'En instruction 1'
|
||||
end
|
||||
|
||||
scenario 'it redirect to users dossier termine' do
|
||||
|
@ -45,7 +45,7 @@ feature 'on click on tabs button' do
|
|||
context 'when he click on tabs termine' do
|
||||
before do
|
||||
visit users_dossiers_url(liste: :termine)
|
||||
page.click_on 'Cloturé 3'
|
||||
page.click_on 'Terminé 3'
|
||||
end
|
||||
|
||||
scenario 'it redirect to users dossier termine' do
|
||||
|
|
|
@ -25,8 +25,8 @@ describe 'layouts/left_panels/_left_panel_backoffice_dossierscontroller_show.htm
|
|||
|
||||
context 'button dossier state changements' do
|
||||
|
||||
shared_examples 'button Accuser réception is present' do
|
||||
it { expect(rendered).to have_link('Accuser réception') }
|
||||
shared_examples 'button Passer en instruction is present' do
|
||||
it { expect(rendered).to have_link('Passer en instruction') }
|
||||
end
|
||||
|
||||
context 'when dossier have state initiated' do
|
||||
|
@ -36,9 +36,9 @@ describe 'layouts/left_panels/_left_panel_backoffice_dossierscontroller_show.htm
|
|||
render
|
||||
end
|
||||
|
||||
it { expect(rendered).to have_content('Nouveau') }
|
||||
it { expect(rendered).to have_content('En construction') }
|
||||
|
||||
include_examples 'button Accuser réception is present'
|
||||
include_examples 'button Passer en instruction is present'
|
||||
end
|
||||
|
||||
context 'when dossier have state replied' do
|
||||
|
@ -50,7 +50,7 @@ describe 'layouts/left_panels/_left_panel_backoffice_dossierscontroller_show.htm
|
|||
|
||||
it { expect(rendered).to have_content('En construction') }
|
||||
|
||||
include_examples 'button Accuser réception is present'
|
||||
include_examples 'button Passer en instruction is present'
|
||||
end
|
||||
|
||||
context 'when dossier have state update' do
|
||||
|
@ -62,7 +62,7 @@ describe 'layouts/left_panels/_left_panel_backoffice_dossierscontroller_show.htm
|
|||
|
||||
it { expect(rendered).to have_content('En construction') }
|
||||
|
||||
include_examples 'button Accuser réception is present'
|
||||
include_examples 'button Passer en instruction is present'
|
||||
end
|
||||
|
||||
context 'when dossier have state received' do
|
||||
|
|
|
@ -17,7 +17,7 @@ describe 'layouts/left_panels/_left_panel_users_recapitulatifcontroller_show.htm
|
|||
render
|
||||
end
|
||||
|
||||
it { expect(rendered).to have_content('Nouveau') }
|
||||
it { expect(rendered).to have_content('En construction') }
|
||||
end
|
||||
|
||||
context 'when dossier state is replied' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue