ProcedureController: use new token validation
This commit is contained in:
parent
0b2a98cdce
commit
3c95273d6f
2 changed files with 16 additions and 5 deletions
|
@ -13,10 +13,10 @@ describe API::V1::ProceduresController, type: :controller do
|
|||
it { is_expected.to have_http_status(404) }
|
||||
end
|
||||
|
||||
context 'when procedure does not belong to administrateur' do
|
||||
context 'when procedure belongs to administrateur without token' do
|
||||
let(:procedure_id) { create(:procedure).id }
|
||||
|
||||
it { is_expected.to have_http_status(404) }
|
||||
it { is_expected.to have_http_status(401) }
|
||||
end
|
||||
|
||||
context 'when procedure exist' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue