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:
parent
3d7356c2d0
commit
0826baeba3
5 changed files with 18 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue