ProcedureController: use new token validation

This commit is contained in:
simon lehericey 2018-09-26 16:38:35 +02:00
parent 0b2a98cdce
commit 3c95273d6f
2 changed files with 16 additions and 5 deletions

View file

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