diff options
author | Valery Sizov <valery@gitlab.com> | 2015-11-05 12:38:00 +0200 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2015-11-05 13:18:51 +0200 |
commit | 6051c28fc03b4d9928ee2f2855f210845f9c0579 (patch) | |
tree | 43447b26e57d81765f983ef38e34eb5b3ba10997 /spec/helpers | |
parent | 363900a3e7902cbda8f62b55eb2c30881b3dae3f (diff) | |
download | gitlab-ce-6051c28fc03b4d9928ee2f2855f210845f9c0579.tar.gz |
Allow groups to appear in the search results if the group owner allows it
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/search_helper_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/helpers/search_helper_spec.rb b/spec/helpers/search_helper_spec.rb index b327f4f911a..ebe9c29d91c 100644 --- a/spec/helpers/search_helper_spec.rb +++ b/spec/helpers/search_helper_spec.rb @@ -42,6 +42,11 @@ describe SearchHelper do expect(search_autocomplete_opts(project.name).size).to eq(1) end + it "includes the public group" do + group = create(:group, public: true) + expect(search_autocomplete_opts(group.name).size).to eq(1) + end + context "with a current project" do before { @project = create(:project) } |