feat(Administrateur::ArchivesControllers): add archives #index and #create for admin
This commit is contained in:
parent
f1f55c3e81
commit
7fb85c97cb
23 changed files with 270 additions and 135 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue