diff options
author | Semyon Pupkov <mail@semyonpupkov.com> | 2016-11-29 14:49:43 +0500 |
---|---|---|
committer | Semyon Pupkov <mail@semyonpupkov.com> | 2016-11-30 10:09:14 +0500 |
commit | f5e8337c7bb7e218303a713440e31f44a66471d7 (patch) | |
tree | 6005e3abe4bf3f5670d5a133b66e450b866b0b8a /spec/controllers/autocomplete_controller_spec.rb | |
parent | 4a3a4131616d7041d28e1ef9316abe3772c45bad (diff) | |
download | gitlab-ce-f5e8337c7bb7e218303a713440e31f44a66471d7.tar.gz |
Do not raise error in AutocompleteController#users when not authorized
https://gitlab.com/gitlab-org/gitlab-ce/issues/25031
Diffstat (limited to 'spec/controllers/autocomplete_controller_spec.rb')
-rw-r--r-- | spec/controllers/autocomplete_controller_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/controllers/autocomplete_controller_spec.rb b/spec/controllers/autocomplete_controller_spec.rb index 0d1545040f1..ea2fd90a9b0 100644 --- a/spec/controllers/autocomplete_controller_spec.rb +++ b/spec/controllers/autocomplete_controller_spec.rb @@ -144,6 +144,15 @@ describe AutocompleteController do it { expect(body).to be_kind_of(Array) } it { expect(body.size).to eq 0 } end + + describe 'GET #users with todo filter' do + it 'gives an array of users' do + get :users, todo_filter: true + + expect(response.status).to eq 200 + expect(body).to be_kind_of(Array) + end + end end context 'author of issuable included' do |