diff options
author | Mario de la Ossa <mariodelaossa@gmail.com> | 2018-04-26 13:53:13 -0600 |
---|---|---|
committer | Mario de la Ossa <mariodelaossa@gmail.com> | 2018-05-04 11:33:09 -0600 |
commit | 5c2078838bb9de710f9025513c4b6ec664bba313 (patch) | |
tree | 338656dae97b6c6687e6794b583b0ae431aa5e2f /spec/helpers/application_helper_spec.rb | |
parent | e71351d4f463715fccd80ddbcb4dade67e80f34b (diff) | |
download | gitlab-ce-5c2078838bb9de710f9025513c4b6ec664bba313.tar.gz |
Backport of 4084-epics-username-autocomplete
Diffstat (limited to 'spec/helpers/application_helper_spec.rb')
-rw-r--r-- | spec/helpers/application_helper_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/helpers/application_helper_spec.rb b/spec/helpers/application_helper_spec.rb index 43cb0dfe163..cf6d8264331 100644 --- a/spec/helpers/application_helper_spec.rb +++ b/spec/helpers/application_helper_spec.rb @@ -290,4 +290,16 @@ describe ApplicationHelper do end end end + + describe '#autocomplete_data_sources' do + let(:project) { create(:project) } + let(:noteable_type) { Issue } + it 'returns paths for autocomplete_sources_controller' do + sources = helper.autocomplete_data_sources(project, noteable_type) + expect(sources.keys).to match_array([:members, :issues, :merge_requests, :labels, :milestones, :commands]) + sources.keys.each do |key| + expect(sources[key]).not_to be_nil + end + end + end end |