Fix test : procedure link is not hidden if archived
This commit is contained in:
parent
0e3dd9225b
commit
b2198663d1
1 changed files with 3 additions and 2 deletions
|
@ -73,9 +73,10 @@ describe 'admin/procedures/show.html.haml', type: :view do
|
|||
it { expect(rendered).to have_css('a#reenable') }
|
||||
end
|
||||
|
||||
describe 'procedure link is not present' do
|
||||
it { expect(rendered).to have_content('Cette procédure a été archivée et n\'est plus accessible par le public.') }
|
||||
describe 'procedure link is present' do
|
||||
it { expect(rendered).to have_content(commencer_url(procedure_path: procedure.path)) }
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
Loading…
Add table
Reference in a new issue