diff options
author | Riccardo Padovani <riccardo@rpadovani.com> | 2019-06-18 07:45:47 +0000 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2019-06-18 07:45:47 +0000 |
commit | b33fb07ef9d2fdf0ce983ded13f9c36ed02e2fd8 (patch) | |
tree | 5d0676ce69d41323197f9dd86e7d58fe52127fad /spec | |
parent | a25c637c1e55b3fb94277ac94c4a1ef592cb825d (diff) | |
download | gitlab-ce-b33fb07ef9d2fdf0ce983ded13f9c36ed02e2fd8.tar.gz |
Search issuables by iids
Diffstat (limited to 'spec')
-rw-r--r-- | spec/controllers/concerns/issuable_collections_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/controllers/concerns/issuable_collections_spec.rb b/spec/controllers/concerns/issuable_collections_spec.rb index fb2cd5ca955..f210537aad5 100644 --- a/spec/controllers/concerns/issuable_collections_spec.rb +++ b/spec/controllers/concerns/issuable_collections_spec.rb @@ -180,5 +180,16 @@ describe IssuableCollections do is_expected.not_to include('invalid_param', 'invalid_array') end end + + context 'search using an issue iid' do + let(:params) { { search: "#5" } } + + it 'mutates the search into a filter by iid' do + is_expected.to include({ + 'iids' => '5', + 'search' => nil + }) + end + end end end |