bug(commencer#commencer): raise when procedure does not have a service

fix(commencer#commencer): use alternate message when procedure does not have a service
This commit is contained in:
Martin 2022-05-12 15:32:42 +02:00
parent 3d7356c2d0
commit 0826baeba3
5 changed files with 18 additions and 4 deletions

View file

@ -32,6 +32,14 @@ describe Users::CommencerController, type: :controller do
expect(subject).to redirect_to(root_path)
end
end
context 'when procedure is closed' do
it 'works' do
published_procedure.close!
get :commencer, params: { path: published_procedure.path }
expect(response).to redirect_to(root_path)
end
end
end
describe '#commencer_test' do