summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJB Vasseur <jvasseur@gmail.com>2018-10-12 09:28:40 +0900
committerJB Vasseur <jvasseur@gmail.com>2018-10-12 09:28:40 +0900
commit9e3804a843a9146e7bd77eb6abfe10417be7a549 (patch)
tree86405c15b9bb28f8ab53a388ffdc5f60212571a0
parent9fcf657889729e23587ec12a1c97c8d0cd43d992 (diff)
downloadgitlab-ce-9e3804a843a9146e7bd77eb6abfe10417be7a549.tar.gz
Non-authenticated user test should not have user passed in the API call !22296
-rw-r--r--spec/requests/api/applications_spec.rb4
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