diff options
author | JB Vasseur <jvasseur@gmail.com> | 2018-10-11 17:32:44 +0300 |
---|---|---|
committer | JB Vasseur <jvasseur@gmail.com> | 2018-10-11 17:32:44 +0300 |
commit | 20bbac427ab2aea423d3f377c4319687520475a4 (patch) | |
tree | 8c69c562b5b3025b79f122d6828166fc0906b556 /spec/requests/api/applications_spec.rb | |
parent | f1645bf7e722096f570a706d37c3379f07a55a68 (diff) |
Hit the database
Diffstat (limited to 'spec/requests/api/applications_spec.rb')
-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 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 |