diff options
author | JB Vasseur <jvasseur@gmail.com> | 2018-10-12 03:28:40 +0300 |
---|---|---|
committer | JB Vasseur <jvasseur@gmail.com> | 2018-10-12 03:28:40 +0300 |
commit | 9e3804a843a9146e7bd77eb6abfe10417be7a549 (patch) | |
tree | 86405c15b9bb28f8ab53a388ffdc5f60212571a0 /spec/requests | |
parent | 9fcf657889729e23587ec12a1c97c8d0cd43d992 (diff) |
Non-authenticated user test should not have user passed in the API call !22296
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/api/applications_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/api/applications_spec.rb b/spec/requests/api/applications_spec.rb index 5c383317b7e..3e732ed478e 100644 --- a/spec/requests/api/applications_spec.rb +++ b/spec/requests/api/applications_spec.rb @@ -105,9 +105,9 @@ describe API::Applications, :api do context 'non-authenticated user' do it 'cannot list application' do - get api('/applications', user) + get api('/applications') - expect(response).to have_http_status 403 + expect(response).to have_http_status 401 end end end |