Enable test revisions
This commit is contained in:
parent
f288528e07
commit
280e54b59d
12 changed files with 36 additions and 44 deletions
|
@ -13,6 +13,7 @@ describe Users::CommencerController, type: :controller do
|
|||
expect(subject.status).to eq(200)
|
||||
expect(subject).to render_template('show')
|
||||
expect(assigns(:procedure)).to eq published_procedure
|
||||
expect(assigns(:revision)).to eq published_procedure.published_revision
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -43,6 +44,7 @@ describe Users::CommencerController, type: :controller do
|
|||
expect(subject.status).to eq(200)
|
||||
expect(subject).to render_template('show')
|
||||
expect(assigns(:procedure)).to eq draft_procedure
|
||||
expect(assigns(:revision)).to eq draft_procedure.draft_revision
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue