feat(Administrateur::ArchivesControllers): add archives #index and #create for admin

This commit is contained in:
Martin 2022-06-23 13:51:58 +02:00 committed by mfo
parent f1f55c3e81
commit 7fb85c97cb
23 changed files with 270 additions and 135 deletions

View file

@ -24,6 +24,10 @@ describe 'administrateurs/procedures/show.html.haml', type: :view do
describe 'procedure path is not customized' do
it { expect(rendered).to have_content('Brouillon') }
end
describe 'archive button' do
it { expect(rendered).not_to have_css('#archive-procedure') }
end
end
end
@ -38,6 +42,9 @@ describe 'administrateurs/procedures/show.html.haml', type: :view do
it { expect(rendered).not_to have_css('#publish-procedure-link') }
it { expect(rendered).to have_css('#close-procedure-link') }
end
describe 'archive button' do
it { expect(rendered).to have_css('#archive-procedure') }
end
end
describe 'procedure is closed' do