Fix test : procedure link is not hidden if archived

This commit is contained in:
Mathieu Magnin 2017-02-21 12:20:18 +01:00
parent 0e3dd9225b
commit b2198663d1

View file

@ -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