summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJB Vasseur <jvasseur@gmail.com>2018-10-11 23:32:44 +0900
committerJB Vasseur <jvasseur@gmail.com>2018-10-11 23:32:44 +0900
commit20bbac427ab2aea423d3f377c4319687520475a4 (patch)
tree8c69c562b5b3025b79f122d6828166fc0906b556
parentf1645bf7e722096f570a706d37c3379f07a55a68 (diff)
downloadgitlab-ce-20bbac427ab2aea423d3f377c4319687520475a4.tar.gz
Hit the database
-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 9240dd94990..77b4c5ecbba 100644
--- a/spec/requests/api/applications_spec.rb
+++ b/spec/requests/api/applications_spec.rb
@@ -5,7 +5,7 @@ describe API::Applications, :api do
let(:admin_user) { create(:user, admin: true) }
let(:user) { create(:user, admin: false) }
- let(:application) { create(:application, name: 'application_name', redirect_uri: 'http://application.url', scopes: '') }
+ let!(:application) { create(:application, name: 'application_name', redirect_uri: 'http://application.url', scopes: '') }
describe 'POST /applications' do
context 'authenticated and authorized user' do
@@ -107,7 +107,7 @@ describe API::Applications, :api do
it 'cannot list application' do
get api('/applications', user)
- expect(response).to have_http_status 401
+ expect(response).to have_http_status 403
end
end
end